diff options
author | Tasuku Suzuki <tasuku.suzuki@kdab.com> | 2020-06-03 06:55:14 +0900 |
---|---|---|
committer | Tasuku Suzuki <tasuku.suzuki@kdab.com> | 2020-06-04 01:52:21 +0900 |
commit | 5a1680ef131d89190e745131c18b50a4c0871d18 (patch) | |
tree | b708f35a1c334ab4655c03bc37414bc4ead3b224 /src/widgets/kernel/qaction_widgets_p.h | |
parent | 788cd98b357fdc9dd8b0f0b1baf1033f0efa1f11 (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.h | 4 |
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 |