QShortcut: Fix build with -no-feature-whatsthis

Amenends 89f1f14c5e.

Task-number: QTBUG-79638
Change-Id: I95c73d5004f234e27967a68d2b770c177fc1ff8d
Reviewed-by: Nodir Temirkhodjaev <nodir.temir@gmail.com>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
Friedemann Kleint 2019-11-04 13:48:36 +01:00
parent edec095cf8
commit ae1d2c45d7

View File

@ -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
}
/*!