Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qhelpcontentitem.h
Go to the documentation of this file.
1// Copyright (C) 2024 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef QHELPCONTENTITEM_H
6#define QHELPCONTENTITEM_H
7
8#include <QtHelp/qhelp_global.h>
9
10QT_BEGIN_NAMESPACE
11
12class QHelpContentItemPrivate;
13class QString;
14class QUrl;
15
16class QHELP_EXPORT QHelpContentItem final
17{
18 Q_DISABLE_COPY_MOVE(QHelpContentItem)
19public:
20 ~QHelpContentItem();
21
22 QHelpContentItem *child(int row) const;
23 int childCount() const;
24 QString title() const;
25 QUrl url() const;
26 int row() const;
27 QHelpContentItem *parent() const;
28 int childPosition(QHelpContentItem *child) const;
29
30private:
31 QHelpContentItem(const QString &name, const QUrl &link, QHelpContentItem *parent = nullptr);
32
33 QHelpContentItemPrivate *d;
34 friend QHelpContentItem *createContentItem(const QString &, const QUrl &, QHelpContentItem *);
35};
36
37QT_END_NAMESPACE
38
39#endif // QHELPCONTENTITEM_H
QList< QHelpContentItem * > childItems
QHelpContentItem * parent
Combined button and popup list for selecting options.