[vlc-commits] qt: toolbar: replace deprecated QPalette::background() QPalette::background
Alexandre Janniaux
git at videolan.org
Sun Jul 28 08:35:57 CEST 2019
vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Thu Jul 25 01:14:50 2019 +0200| [322d29b15b818ddf13c297e8318d6d2157229793] | committer: Jean-Baptiste Kempf
qt: toolbar: replace deprecated QPalette::background() QPalette::background
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=322d29b15b818ddf13c297e8318d6d2157229793
---
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();
}
}
More information about the vlc-commits
mailing list