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>
This commit is contained in:
Axel Spoerl 2022-11-26 21:03:45 +01:00 committed by Qt Cherry-pick Bot
parent ca0f0a43e9
commit e143664c91

View File

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