9
10
11
12
13
14
15
16
17
18
19
22
23
24
25
26QHelpDataContentItem::QHelpDataContentItem(QHelpDataContentItem *parent,
27 const QString &title,
const QString &reference)
28 : m_title(title), m_reference(reference)
31 parent->m_children.append(
this);
35
36
37QHelpDataContentItem::~QHelpDataContentItem()
39 qDeleteAll(m_children);
43
44
45QString QHelpDataContentItem::title()
const
51
52
53QString QHelpDataContentItem::reference()
const
59
60
61QList<QHelpDataContentItem*> QHelpDataContentItem::children()
const
68 return (other.name == name) && (other.reference == reference);
72
73
74
75
78
79
82 d =
new QHelpDataFilterSectionData();
86
87
88
91 d->filterAttributes.append(filter);
95
96
99 return d->filterAttributes;
103
104
107 d->indices.append(index);
111
112
115 d->indices = indices;
119
120
127
128
131 d->contents.append(content);
135
136
137
140 qDeleteAll(d->contents);
141 d->contents = contents;
145
146
153
154
157 d->files.append(file);
161
162
169
170
177
179
180
183
184
185
186
189
190
191
192
195
196
197
198
201
202
203
204
207
208
209
210
213
214
215
216
219
220
221
222
223
226
227
228
229
230
void addFilterAttribute(const QString &filter)
Adds the filter attribute filter to the filter attributes of this section.
void setContents(const QList< QHelpDataContentItem * > &contents)
Sets the list of top level content items of the filter section to contents.
QStringList filterAttributes() const
Returns a list of all filter attributes defined for this section.
void setFiles(const QStringList &files)
Set the list of files to files.
QList< QHelpDataIndexItem > indices() const
Returns the list of indices.
void setIndices(const QList< QHelpDataIndexItem > &indices)
Sets the filter sections list of indices to indices.
QHelpDataFilterSection()
Constructs a help data filter section.
void addFile(const QString &file)
Adds the file file to the filter section.
QStringList files() const
Returns the list of files.
QList< QHelpDataContentItem * > contents() const
Returns a list of top level content items.
void addIndex(const QHelpDataIndexItem &index)
Adds the index item index to the list of indices.
Combined button and popup list for selecting options.
bool operator==(const QHelpDataIndexItem &other) const