diff options
author | Ivan Solovev <ivan.solovev@qt.io> | 2022-07-20 15:45:12 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-07-21 15:44:29 +0000 |
commit | 0fd172d20693a471296d637d5d95db784a015d98 (patch) | |
tree | 0e1d8364e18ad0f909b28f3b2937cf3a23433b04 | |
parent | 26c434d18750002c2bf79661025c026eced5b667 (diff) | |
download | qttools-0fd172d20693a471296d637d5d95db784a015d98.tar.gz |
QHelpIndexWidget: guard the usage of deprecated signals
... so that we could compile the code with QT_DISABLE_DEPRECATED_BEFORE
Task-number: QTBUG-104968
Change-Id: Iee39a3a5af51b6f9b02fa0eccac3f15aaceb778d
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
(cherry picked from commit 9d8aa919e681ff27fab97efabfe1b43338eb6048)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | src/assistant/help/qhelpindexwidget.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/assistant/help/qhelpindexwidget.cpp b/src/assistant/help/qhelpindexwidget.cpp index 5f0318cd6..abce833e8 100644 --- a/src/assistant/help/qhelpindexwidget.cpp +++ b/src/assistant/help/qhelpindexwidget.cpp @@ -329,6 +329,7 @@ void QHelpIndexWidget::showLink(const QModelIndex &index) const QList<QHelpLink> &docs = indexModel->helpEngine()->documentsForKeyword(name); if (docs.count() > 1) { emit documentsActivated(docs, name); +#if QT_DEPRECATED_SINCE(5, 15) QT_WARNING_PUSH QT_WARNING_DISABLE_DEPRECATED QMultiMap<QString, QUrl> links; @@ -336,12 +337,15 @@ void QHelpIndexWidget::showLink(const QModelIndex &index) links.insert(doc.title, doc.url); emit linksActivated(links, name); QT_WARNING_POP +#endif } else if (!docs.isEmpty()) { emit documentActivated(docs.first(), name); +#if QT_DEPRECATED_SINCE(5, 15) QT_WARNING_PUSH QT_WARNING_DISABLE_DEPRECATED emit linkActivated(docs.first().url, name); QT_WARNING_POP +#endif } } |