summaryrefslogtreecommitdiff
path: root/src/designer/src/lib/shared/qdesigner_formbuilder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/designer/src/lib/shared/qdesigner_formbuilder.cpp')
-rw-r--r--src/designer/src/lib/shared/qdesigner_formbuilder.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/designer/src/lib/shared/qdesigner_formbuilder.cpp b/src/designer/src/lib/shared/qdesigner_formbuilder.cpp
index 27b92c4e5..ff52bfd4b 100644
--- a/src/designer/src/lib/shared/qdesigner_formbuilder.cpp
+++ b/src/designer/src/lib/shared/qdesigner_formbuilder.cpp
@@ -323,12 +323,8 @@ QWidget *QDesignerFormBuilder::createPreview(const QDesignerFormWindowInterface
}
// Fake application style sheet by prepending. (If this doesn't work, fake by nesting
// into parent widget).
- if (!appStyleSheet.isEmpty()) {
- QString styleSheet = appStyleSheet;
- styleSheet += QLatin1Char('\n');
- styleSheet += widget->styleSheet();
- widget->setStyleSheet(styleSheet);
- }
+ if (!appStyleSheet.isEmpty())
+ widget->setStyleSheet(appStyleSheet + u'\n' + widget->styleSheet());
return widget;
}