10
11
12
13
14
15
16
17
18
19
20
23
24
25
26
27QHelpDataContentItem::QHelpDataContentItem(QHelpDataContentItem *parent,
28 const QString &title,
const QString &reference)
29 : m_title(title), m_reference(reference)
32 parent->m_children.append(
this);
36
37
38QHelpDataContentItem::~QHelpDataContentItem()
40 qDeleteAll(m_children);
44
45
46QString QHelpDataContentItem::title()
const
52
53
54QString QHelpDataContentItem::reference()
const
60
61
62QList<QHelpDataContentItem*> QHelpDataContentItem::children()
const
69 return (other.name == name) && (other.reference == reference);
73
74
75
76
79
80
83 d =
new QHelpDataFilterSectionData();
87
88
89
92 d->filterAttributes.append(filter);
96
97
100 return d->filterAttributes;
104
105
108 d->indices.append(index);
112
113
116 d->indices = indices;
120
121
128
129
132 d->contents.append(content);
136
137
138
141 qDeleteAll(d->contents);
142 d->contents = contents;
146
147
154
155
158 d->files.append(file);
162
163
170
171
178
180
181
184
185
186
187
190
191
192
193
196
197
198
199
202
203
204
205
208
209
210
211
214
215
216
217
220
221
222
223
224
227
228
229
230
231
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