Replace deprecated foreground() by windowText()

This commit is contained in:
Matthias Drexler 2019-07-03 21:25:05 +02:00 committed by Jonathan White
parent e1471cbd19
commit c669ecb4dd

View File

@ -273,7 +273,7 @@ void KMessageWidget::setMessageType(KMessageWidget::MessageType type)
break;
case Warning:
bg1.setRgb(252, 193, 57);
fg = palette().foreground().color();
fg = palette().windowText().color();
break;
case Error:
bg1.setRgb(198, 69, 21);