summaryrefslogtreecommitdiffstats
path: root/src/designer
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2020-01-08 10:06:04 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2020-01-08 11:03:16 +0100
commite3f1d3fef117d6dbf7952995506ef1dec9423067 (patch)
treee688a473cd69ec1ff35f7cbcfc910a3f853ad82e /src/designer
parent7fd5d435b76460e42cd25004056a39e05f376baa (diff)
Qt Designer/Palette Editor: Set preview palette on QMdiSubWindow
Ensure the highlight color (which affects the subwindow border) has a visible effect. Change-Id: Ic4a3e9295aa85fb248546714fd29f02eca2ce2a5 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Diffstat (limited to 'src/designer')
-rw-r--r--src/designer/src/components/propertyeditor/previewframe.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/designer/src/components/propertyeditor/previewframe.cpp b/src/designer/src/components/propertyeditor/previewframe.cpp
index a97e46877..c093663e2 100644
--- a/src/designer/src/components/propertyeditor/previewframe.cpp
+++ b/src/designer/src/components/propertyeditor/previewframe.cpp
@@ -78,7 +78,7 @@ PreviewFrame::PreviewFrame(QWidget *parent) :
void PreviewFrame::setPreviewPalette(const QPalette &pal)
{
- ensureMdiSubWindow()->widget()->setPalette(pal);
+ ensureMdiSubWindow()->setPalette(pal);
}
void PreviewFrame::setSubWindowActive(bool active)