Fix build for -no-feature-cssparser

Change-Id: I78b66e8a98458736c69c4955390a98f8889968ea
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
bb10
Stephan Binner 2017-04-19 09:22:25 +02:00
parent b3066656e5
commit 59d9ee0aa4
1 changed files with 2 additions and 0 deletions

View File

@ -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;