[vlc-devel] [PATCH 2/7] qt: toolbar: replace deprecated QPalette::background() QPalette::background

Alexandre Janniaux ajanni at videolabs.io
Thu Jul 25 01:14:50 CEST 2019


---
 modules/gui/qt/dialogs/toolbar.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/qt/dialogs/toolbar.cpp b/modules/gui/qt/dialogs/toolbar.cpp
index 9be772589a..7ca554aa18 100644
--- a/modules/gui/qt/dialogs/toolbar.cpp
+++ b/modules/gui/qt/dialogs/toolbar.cpp
@@ -331,7 +331,7 @@ void PreviewWidget::paintEvent( QPaintEvent * )
             if ( !strcmp( item->widget()->metaObject()->className(), "QLabel" ) )
             {
                 QPainter eraser( &pixmaps[i] );
-                eraser.fillRect( item->geometry(), palette().background() );
+                eraser.fillRect( item->geometry(), palette().window() );
                 eraser.end();
             }
         }
--
2.22.0



More information about the vlc-devel mailing list