blob: 176ae05eddf5074c34b8121deb43e4c4b8972fb1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
// Copyright (C) 2024 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#ifndef QHELPCONTENTITEM_H
#define QHELPCONTENTITEM_H
#include <QtHelp/qhelp_global.h>
QT_BEGIN_NAMESPACE
class QHelpContentItemPrivate;
class QString;
class QUrl;
class QHELP_EXPORT QHelpContentItem
{
public:
~QHelpContentItem();
QHelpContentItem *child(int row) const;
int childCount() const;
QString title() const;
QUrl url() const;
int row() const;
QHelpContentItem *parent() const;
int childPosition(QHelpContentItem *child) const;
private:
QHelpContentItem(const QString &name, const QUrl &link, QHelpContentItem *parent = nullptr);
QHelpContentItemPrivate *d;
friend QHelpContentItem *createContentItem(const QString &, const QUrl &, QHelpContentItem *);
};
QT_END_NAMESPACE
#endif // QHELPCONTENTITEM_H
|