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
qhelpindexwidget.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 QHELPINDEXWIDGET_H
6#define QHELPINDEXWIDGET_H
7
8#include <QtHelp/qhelp_global.h>
9
10#include <QtCore/qstringlistmodel.h>
11#include <QtCore/qurl.h>
12
13#include <QtWidgets/qlistview.h>
14
16
17class QHelpEngineCore;
20struct QHelpLink;
21
22class QHELP_EXPORT QHelpIndexModel : public QStringListModel
23{
24 Q_OBJECT
25
26public:
27 void createIndexForCurrentFilter();
28 void createIndex(const QString &customFilterName);
29 QModelIndex filter(const QString &filter, const QString &wildcard = {});
30
31 bool isCreatingIndex() const;
32 QHelpEngineCore *helpEngine() const;
33
34Q_SIGNALS:
35 void indexCreationStarted();
36 void indexCreated();
37
38private Q_SLOTS:
39 void insertIndices();
40
41private:
42 QHelpIndexModel(QHelpEngineCore *helpEngine);
43 ~QHelpIndexModel();
44
45 QHelpIndexModelPrivate *d;
46 friend class QHelpEnginePrivate;
47};
48
49class QHELP_EXPORT QHelpIndexWidget : public QListView
50{
51 Q_OBJECT
52 Q_MOC_INCLUDE(<QtHelp/qhelplink.h>)
53
54Q_SIGNALS:
55#if QT_DEPRECATED_SINCE(5, 15)
56 QT_DEPRECATED_X("Use documentActivated() instead")
57 void linkActivated(const QUrl &link, const QString &keyword);
58 QT_DEPRECATED_X("Use documentsActivated() instead")
59 void linksActivated(const QMultiMap<QString, QUrl> &links, const QString &keyword);
60#endif
61 void documentActivated(const QHelpLink &document, const QString &keyword);
62 void documentsActivated(const QList<QHelpLink> &documents, const QString &keyword);
63
64public Q_SLOTS:
65 void filterIndices(const QString &filter, const QString &wildcard = {});
66 void activateCurrentItem();
67
68private Q_SLOTS:
69 void showLink(const QModelIndex &index);
70
71private:
72 QHelpIndexWidget();
73 friend class QHelpEngine;
74};
75
76QT_END_NAMESPACE
77
78#endif // QHELPINDEXWIDGET_H
QHelpSearchEngine * searchEngine
QHelpIndexWidget * indexWidget
QHelpContentModel * contentModel
QHelpEnginePrivate(QHelpEngineCore *helpEngineCore)
QHelpEngineCore * m_helpEngineCore
bool m_isApplyCurrentFilterScheduled
QHelpIndexModel * indexModel
QHelpContentWidget * contentWidget
The QHelpEngine class provides access to contents and indices of the help engine.
Definition qhelpengine.h:20
The QHelpFilterEngine class provides a filtered view of the help contents.
The QHelpIndexModel class provides a model that supplies index keywords to views.
\inmodule QtHelp
Definition qmap.h:295
\inmodule QtCore
Combined button and popup list for selecting options.