[vlc-devel] [PATCH 1/7] qt: messages: replace deprecated QPalette::foreground
Alexandre Janniaux
ajanni at videolabs.io
Thu Jul 25 01:14:49 CEST 2019
---
modules/gui/qt/dialogs/messages.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/gui/qt/dialogs/messages.cpp b/modules/gui/qt/dialogs/messages.cpp
index a09178d12e..8d31eaac3e 100644
--- a/modules/gui/qt/dialogs/messages.cpp
+++ b/modules/gui/qt/dialogs/messages.cpp
@@ -247,7 +247,7 @@ void MessagesDialog::sinkMessage( const MsgEvent *msg )
/* Insert the message */
format.setProperty( QTextFormat::FontItalic, false );
- format.setForeground( messages->palette().foreground() );
+ format.setForeground( messages->palette().windowText() );
messages->textCursor().insertText( msg->text, format );
/* Pass the new message thru the filter */
--
2.22.0
More information about the vlc-devel
mailing list