Skip to content

Commit

Permalink
porting: from deprecated QPalette::Background
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfikl committed Apr 27, 2024
1 parent 1960801 commit e68641b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/logtextedit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ void LogTextEdit::setLogPalette(bool runFailed)
moveCursor(QTextCursor::End);
if (runFailed) {
QPalette failedPalette(QApplication::palette());
failedPalette.setColor(QPalette::Background, QColor(255, 102, 102));
failedPalette.setColor(QPalette::Window, QColor(255, 102, 102));
setAutoFillBackground(true);
setPalette(failedPalette);
} else
Expand Down

0 comments on commit e68641b

Please sign in to comment.