diff options
author | Axel Spoerl <axel.spoerl@qt.io> | 2022-11-26 21:03:45 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-11-30 12:48:06 +0000 |
commit | e143664c91fa01926d9fc978f1a9eacc29f03b39 (patch) | |
tree | 966e1d54119c77f6538602caba4c089d5f76f67a | |
parent | ca0f0a43e9df19f0baa825c994061609a65b863e (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.
Change-Id: I0acf765d9646ecc8d49791d96b5ea910e11997fe
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
(cherry picked from commit 612c8e428e2c4738bd9da029103921bef536f2ac)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp | 1 |
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 b27de649cf..0ce50fd1b6 100644 --- a/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp +++ b/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp @@ -4524,6 +4524,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); |