summaryrefslogtreecommitdiffstats
path: root/src/widgets/kernel/qwhatsthis.h
diff options
context:
space:
mode:
authorValentin Fokin <fokinv@inf.u-szeged.hu>2018-05-25 15:40:36 +0200
committerValentin Fokin <fokinv@inf.u-szeged.hu>2018-07-12 08:57:09 +0000
commit21291d78c528b798252a046db4f17872132259f4 (patch)
treee8884b64b47f605cd32049a9eff1351422ff5e13 /src/widgets/kernel/qwhatsthis.h
parent9146432dc66d41f22548bbb425b61458d241d28e (diff)
Fix build with '-no-feature-action' configuration
Task-number: QTBUG-68353 Change-Id: Ia949e4a72a363df5fba86504e5f7e3ce8a3ad347 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Diffstat (limited to 'src/widgets/kernel/qwhatsthis.h')
-rw-r--r--src/widgets/kernel/qwhatsthis.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/widgets/kernel/qwhatsthis.h b/src/widgets/kernel/qwhatsthis.h
index 1f0f82b2a2..59c0b01c9b 100644
--- a/src/widgets/kernel/qwhatsthis.h
+++ b/src/widgets/kernel/qwhatsthis.h
@@ -48,7 +48,9 @@ QT_REQUIRE_CONFIG(whatsthis);
QT_BEGIN_NAMESPACE
+#if QT_CONFIG(action)
class QAction;
+#endif // QT_CONFIG(action)
class Q_WIDGETS_EXPORT QWhatsThis
{
@@ -62,7 +64,9 @@ public:
static void showText(const QPoint &pos, const QString &text, QWidget *w = nullptr);
static void hideText();
+#if QT_CONFIG(action)
static QAction *createAction(QObject *parent = nullptr);
+#endif // QT_CONFIG(action)
};