summaryrefslogtreecommitdiffstats
path: root/src/widgets/kernel
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2019-11-04 13:48:36 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2019-11-06 14:57:33 +0100
commitae1d2c45d7fd2f7d05110f05b1094f8e5b8d14e4 (patch)
treec39534f63225a9140074005d5453b2673fc0f1ec /src/widgets/kernel
parentedec095cf80b62057116ce75c581b5ca5866bdcc (diff)
QShortcut: Fix build with -no-feature-whatsthis
Amenends 89f1f14c5e9a49f25345a65d81b3518d58ecb91a. Task-number: QTBUG-79638 Change-Id: I95c73d5004f234e27967a68d2b770c177fc1ff8d Reviewed-by: Nodir Temirkhodjaev <nodir.temir@gmail.com> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/widgets/kernel')
-rw-r--r--src/widgets/kernel/qshortcut.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/widgets/kernel/qshortcut.cpp b/src/widgets/kernel/qshortcut.cpp
index fe94f676df..904d765d3c 100644
--- a/src/widgets/kernel/qshortcut.cpp
+++ b/src/widgets/kernel/qshortcut.cpp
@@ -410,10 +410,14 @@ public:
bool QShortcutPrivate::handleWhatsThis()
{
+#if QT_CONFIG(whatsthis)
const bool result = QWhatsThis::inWhatsThisMode();
if (result)
QWhatsThis::showText(QCursor::pos(), sc_whatsthis);
return result;
+#else
+ return false;
+#endif
}
/*!