[vlc-commits] Qt: QPalette: fix obsoleted values
Francois Cartegnie
git at videolan.org
Tue Dec 18 21:07:15 CET 2012
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Dec 18 20:51:51 2012 +0100| [ead6ddbb9298931217b473644797c50b2ba6fff7] | committer: Francois Cartegnie
Qt: QPalette: fix obsoleted values
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ead6ddbb9298931217b473644797c50b2ba6fff7
---
modules/gui/qt4/styles/seekstyle.cpp | 2 +-
modules/gui/qt4/util/input_slider.cpp | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/gui/qt4/styles/seekstyle.cpp b/modules/gui/qt4/styles/seekstyle.cpp
index e1485d3..4154f06 100644
--- a/modules/gui/qt4/styles/seekstyle.cpp
+++ b/modules/gui/qt4/styles/seekstyle.cpp
@@ -137,7 +137,7 @@ void SeekStyle::drawComplexControl( ComplexControl cc, const QStyleOptionComplex
/* draw chapters tickpoints */
if ( seekSlider->chapters && seekSlider->inputLength && groove.width() )
{
- QColor background = p.color( QPalette::Active, QPalette::Background );
+ QColor background = p.color( QPalette::Active, QPalette::Window );
QColor foreground = p.color( QPalette::Active, QPalette::WindowText );
foreground.setHsv( foreground.hue(),
( background.saturation() + foreground.saturation() ) / 2,
diff --git a/modules/gui/qt4/util/input_slider.cpp b/modules/gui/qt4/util/input_slider.cpp
index ae0792b..d421903 100644
--- a/modules/gui/qt4/util/input_slider.cpp
+++ b/modules/gui/qt4/util/input_slider.cpp
@@ -65,7 +65,7 @@ SeekSlider::SeekSlider( Qt::Orientation q, QWidget *_parent, bool _static )
// prepare some static colors
QPalette p = palette();
- QColor background = p.color( QPalette::Active, QPalette::Background );
+ QColor background = p.color( QPalette::Active, QPalette::Window );
tickpointForeground = p.color( QPalette::Active, QPalette::WindowText );
tickpointForeground.setHsv( tickpointForeground.hue(),
( background.saturation() + tickpointForeground.saturation() ) / 2,
@@ -469,7 +469,7 @@ SoundSlider::SoundSlider( QWidget *_parent, int _i_step,
for( int i = colorList.count(); i < 12; i++)
colorList.append( "255" );
- background = palette().color( QPalette::Active, QPalette::Background );
+ background = palette().color( QPalette::Active, QPalette::Window );
foreground = palette().color( QPalette::Active, QPalette::WindowText );
foreground.setHsv( foreground.hue(),
( background.saturation() + foreground.saturation() ) / 2,
More information about the vlc-commits
mailing list