Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qhelpcontentwidget.h
Go to the documentation of this file.
1
// Copyright (C) 2016 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
QHELPCONTENTWIDGET_H
6
#
define
QHELPCONTENTWIDGET_H
7
8
#
include
<
QtHelp
/
qhelp_global
.
h
>
9
#
include
<
QtHelp
/
qhelpcontentitem
.
h
>
10
#
include
<
QtWidgets
/
qtreeview
.
h
>
11
12
QT_BEGIN_NAMESPACE
13
14
class
QHelpContentModelPrivate;
15
class
QHelpEngine;
16
class
QHelpEngineCore;
17
class
QUrl;
18
19
class
QHELP_EXPORT
QHelpContentModel
:
public
QAbstractItemModel
20
{
21
Q_OBJECT
22
23
public
:
24
~QHelpContentModel() override;
25
26
void
createContentsForCurrentFilter();
27
void
createContents(
const
QString &customFilterName);
28
QHelpContentItem *contentItemAt(
const
QModelIndex &index)
const
;
29
30
QVariant data(
const
QModelIndex &index,
int
role)
const
override;
31
QModelIndex index(
int
row,
int
column,
const
QModelIndex &parent = {})
const
override;
32
QModelIndex parent(
const
QModelIndex &index)
const
override;
33
int
rowCount(
const
QModelIndex &parent = {})
const
override;
34
int
columnCount(
const
QModelIndex &parent = {})
const
override;
35
bool
isCreatingContents()
const
;
36
37
Q_SIGNALS:
38
void
contentsCreationStarted();
39
void
contentsCreated();
40
41
private
Q_SLOTS:
42
void
insertContents();
43
44
private
:
45
QHelpContentModel(QHelpEngineCore *helpEngine);
46
QHelpContentModelPrivate *d;
47
friend
class
QHelpEnginePrivate;
48
friend
class
QHelpContentModelPrivate;
49
};
50
51
class
QHELP_EXPORT
QHelpContentWidget
:
public
QTreeView
52
{
53
Q_OBJECT
54
55
public
:
56
QModelIndex indexOf(
const
QUrl &link);
57
58
Q_SIGNALS:
59
void
linkActivated(
const
QUrl &link);
60
61
private
Q_SLOTS:
62
void
showLink(
const
QModelIndex &index);
63
64
private
:
65
bool
searchContentItem(QHelpContentModel *model,
const
QModelIndex &parent,
66
const
QString &path);
67
QModelIndex m_syncIndex;
68
69
private
:
70
QHelpContentWidget();
71
friend
class
QHelpEngine;
72
};
73
74
QT_END_NAMESPACE
75
76
#
endif
// QHELPCONTENTWIDGET_H
QHelpContentModelPrivate
Definition
qhelpcontentwidget.cpp:20
QHelpContentModelPrivate::rootItem
std::shared_ptr< QHelpContentItem > rootItem
Definition
qhelpcontentwidget.cpp:42
QHelpContentModelPrivate::helpEngine
QHelpEngineCore * helpEngine
Definition
qhelpcontentwidget.cpp:41
QHelpContentModelPrivate::q
QHelpContentModel * q
Definition
qhelpcontentwidget.cpp:40
QHelpContentModel
\inmodule QtHelp
Definition
qhelpcontentwidget.h:20
QHelpContentWidget
\inmodule QtHelp
Definition
qhelpcontentwidget.h:52
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qttools
src
assistant
help
qhelpcontentwidget.h
Generated on
for Qt by
1.18.0