summaryrefslogtreecommitdiffstats
path: root/src/widgets/widgets
diff options
context:
space:
mode:
authorStephan Binner <stephan.binner@basyskom.com>2017-04-19 09:22:25 +0200
committerStephan Binner <stephan.binner@basyskom.com>2017-04-19 08:00:39 +0000
commit59d9ee0aa450c47fd266744d72da7ef61c027553 (patch)
tree323a88429b4db229124ea5b32828d3c9428f0219 /src/widgets/widgets
parentb3066656e550077426bd2ad2e9c7e0ec4343cecd (diff)
Fix build for -no-feature-cssparser
Change-Id: I78b66e8a98458736c69c4955390a98f8889968ea Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'src/widgets/widgets')
-rw-r--r--src/widgets/widgets/qmenu.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/widgets/widgets/qmenu.cpp b/src/widgets/widgets/qmenu.cpp
index cf3fc9a9f6..98dc6d0a11 100644
--- a/src/widgets/widgets/qmenu.cpp
+++ b/src/widgets/widgets/qmenu.cpp
@@ -129,7 +129,9 @@ public:
setAttribute(Qt::WA_X11NetWmWindowTypeMenu, true);
setWindowTitle(p->windowTitle());
setEnabled(p->isEnabled());
+#if QT_CONFIG(cssparser)
setStyleSheet(p->styleSheet());
+#endif
if (style() != p->style())
setStyle(p->style());
int leftMargin, topMargin, rightMargin, bottomMargin;