summaryrefslogtreecommitdiffstats
path: root/src/assistant/help/qhelpindexwidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/assistant/help/qhelpindexwidget.h')
-rw-r--r--src/assistant/help/qhelpindexwidget.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/assistant/help/qhelpindexwidget.h b/src/assistant/help/qhelpindexwidget.h
index 58dda5e39..896b0871f 100644
--- a/src/assistant/help/qhelpindexwidget.h
+++ b/src/assistant/help/qhelpindexwidget.h
@@ -50,7 +50,9 @@ QT_BEGIN_NAMESPACE
class QHelpEnginePrivate;
+class QHelpEngineCore;
class QHelpIndexModelPrivate;
+struct QHelpLink;
class QHELP_EXPORT QHelpIndexModel : public QStringListModel
{
@@ -61,8 +63,12 @@ public:
QModelIndex filter(const QString &filter,
const QString &wildcard = QString());
+#if QT_DEPRECATED_SINCE(5, 15)
+ QT_DEPRECATED_X("Use QHelpEngineCore::documentsForKeyword() instead")
QMap<QString, QUrl> linksForKeyword(const QString &keyword) const;
+#endif
bool isCreatingIndex() const;
+ QHelpEngineCore *helpEngine() const;
Q_SIGNALS:
void indexCreationStarted();
@@ -84,9 +90,17 @@ class QHELP_EXPORT QHelpIndexWidget : public QListView
Q_OBJECT
Q_SIGNALS:
+#if QT_DEPRECATED_SINCE(5, 15)
+ QT_DEPRECATED_X("Use documentActivated() instead")
void linkActivated(const QUrl &link, const QString &keyword);
+ QT_DEPRECATED_X("Use documentsActivated() instead")
void linksActivated(const QMap<QString, QUrl> &links,
const QString &keyword);
+#endif
+ void documentActivated(const QHelpLink &document,
+ const QString &keyword);
+ void documentsActivated(const QList<QHelpLink> &documents,
+ const QString &keyword);
public Q_SLOTS:
void filterIndices(const QString &filter,