Replace QPalette::Background with QPalette::Window

This commit is contained in:
Jonas Kvinge
2020-07-18 04:12:50 +02:00
parent 4328831fcd
commit 9b8bfdf33c
6 changed files with 11 additions and 13 deletions

View File

@@ -45,7 +45,7 @@ ErrorDialog::ErrorDialog(QWidget *parent)
QPixmap warning_pixmap(warning_icon.pixmap(48));
QPalette messages_palette(ui_->messages->palette());
messages_palette.setColor(QPalette::Base, messages_palette.color(QPalette::Background));
messages_palette.setColor(QPalette::Base, messages_palette.color(QPalette::Window));
ui_->messages->setPalette(messages_palette);
ui_->icon->setPixmap(warning_pixmap);