summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAxel Spoerl <axel.spoerl@qt.io>2022-11-26 21:03:45 +0100
committerAxel Spoerl <axel.spoerl@qt.io>2022-11-27 16:49:35 +0100
commit612c8e428e2c4738bd9da029103921bef536f2ac (patch)
tree9076a5185ba7f1f8abe69798b6d9ba3c3aa52077 /tests
parent481338751b7e1ca7ddc363bd791d1bf5e58f412d (diff)
Set simplePalette on staticWidget in tst_QWidget::optimizedResizeMove
It was forgotten to assign a simple palette to this object in 1576f827214cca8a2233f3c81e7d0e3d89eb8007 This patch adds the missing line. Pick-to: 6.4 Change-Id: I0acf765d9646ecc8d49791d96b5ea910e11997fe Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp b/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp
index f3135cc916..06bc12904e 100644
--- a/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp
+++ b/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp
@@ -4549,6 +4549,7 @@ void tst_QWidget::optimizedResizeMove()
parent.resize(400, 400);
StaticWidget staticWidget(&parent);
+ staticWidget.setPalette(simplePalette());
staticWidget.gotPaintEvent = false;
staticWidget.move(150, 150);
staticWidget.resize(150, 150);