summaryrefslogtreecommitdiffstats
path: root/src/widgets/kernel/qaction_widgets_p.h
diff options
context:
space:
mode:
authorTasuku Suzuki <tasuku.suzuki@kdab.com>2020-06-03 06:55:14 +0900
committerTasuku Suzuki <tasuku.suzuki@kdab.com>2020-06-04 01:52:21 +0900
commit5a1680ef131d89190e745131c18b50a4c0871d18 (patch)
treeb708f35a1c334ab4655c03bc37414bc4ead3b224 /src/widgets/kernel/qaction_widgets_p.h
parent788cd98b357fdc9dd8b0f0b1baf1033f0efa1f11 (diff)
Fix build without features.menu
qaction_widgets.cpp needs qwidget_p.h for qWidgetShortcutContextMatcher. Change-Id: I9144a4158af2f25f20b6f13badd0ddcd50075b67 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/widgets/kernel/qaction_widgets_p.h')
-rw-r--r--src/widgets/kernel/qaction_widgets_p.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/widgets/kernel/qaction_widgets_p.h b/src/widgets/kernel/qaction_widgets_p.h
index 02387c7371..c301aeb926 100644
--- a/src/widgets/kernel/qaction_widgets_p.h
+++ b/src/widgets/kernel/qaction_widgets_p.h
@@ -52,7 +52,9 @@
//
#include <QtGui/private/qaction_p.h>
+#if QT_CONFIG(menu)
#include <QtWidgets/qmenu.h>
+#endif
QT_REQUIRE_CONFIG(action);
@@ -73,10 +75,12 @@ public:
QShortcutMap::ContextMatcher contextMatcher() const override;
#endif
+#if QT_CONFIG(menu)
QPointer<QMenu> m_menu;
QObject *menu() const override;
void setMenu(QObject *menu) override;
+#endif
};
QT_END_NAMESPACE