Remove unused variable in tst_QTextEdit::setDocumentPreservesPalette()

Change-Id: I96c0f39c2ee1bd03cf0d7939624652ee008c9726
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
This commit is contained in:
Shawn Rutledge 2022-06-20 21:52:21 +02:00
parent 84e22f9e82
commit 579f0a4cf2

View File

@ -2153,7 +2153,6 @@ void tst_QTextEdit::setDocumentPreservesPalette()
QWidgetTextControl *control = ed->findChild<QWidgetTextControl *>(); QWidgetTextControl *control = ed->findChild<QWidgetTextControl *>();
QVERIFY(control); QVERIFY(control);
QPalette defaultPal = ed->palette();
QPalette whitePal = ed->palette(); QPalette whitePal = ed->palette();
whitePal.setColor(QPalette::Active, QPalette::Text, Qt::white); whitePal.setColor(QPalette::Active, QPalette::Text, Qt::white);