summaryrefslogtreecommitdiff
path: root/src/assistant
diff options
context:
space:
mode:
authorIvan Solovev <ivan.solovev@qt.io>2022-07-20 15:45:12 +0200
committerIvan Solovev <ivan.solovev@qt.io>2022-07-21 17:14:08 +0200
commit9d8aa919e681ff27fab97efabfe1b43338eb6048 (patch)
tree378452cb505ca4565599ac939240d8769b738e3b /src/assistant
parent2af4532e3367d0704ea965c262cf2f2e22256a68 (diff)
downloadqttools-9d8aa919e681ff27fab97efabfe1b43338eb6048.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 Pick-to: 6.4 6.3 6.2 Change-Id: Iee39a3a5af51b6f9b02fa0eccac3f15aaceb778d Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Diffstat (limited to 'src/assistant')
-rw-r--r--src/assistant/help/qhelpindexwidget.cpp4
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
}
}