]> git.sesse.net Git - vlc/commitdiff
Qt: orange cone mode!
authorJean-Baptiste Kempf <jb@videolan.org>
Mon, 11 Apr 2011 16:46:08 +0000 (18:46 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 11 Apr 2011 16:49:33 +0000 (18:49 +0200)
</joke>

modules/gui/qt4/Modules.am
modules/gui/qt4/util/input_slider.cpp
modules/gui/qt4/vlc.qrc

index 2778be55787905934668781f24fd2c6be44e3874..6f2bfaa91ebffb985919296d93a104261dccc380 100644 (file)
@@ -103,6 +103,7 @@ DEPS_res = \
        pixmaps/eject.png \
        pixmaps/faster.png \
        pixmaps/go-next.png \
+       pixmaps/progress.png \
        pixmaps/menus/help_16px.png \
        pixmaps/menus/info_16px.png \
        pixmaps/menus/messages_16px.png \
index ea3a9c3fa6943be8bd65a5efb2ed92dec82211bb..34e03d9643898ee8cbe8718aa5ca57dc06d67b6c 100644 (file)
@@ -241,7 +241,11 @@ void InputSlider::paintEvent( QPaintEvent *event )
 
     if ( option.sliderPosition > minimum() && option.sliderPosition <= maximum() ) {
         painter.setPen( Qt::black );
-        painter.setBrush( foregroundGradient );
+    //    painter.setBrush( foregroundGradient );
+
+        QBrush brush;
+        brush.setTexture( QPixmap( ":/progress" ) );
+        painter.setBrush( brush );
         painter.drawRoundedRect( barRect.adjusted( 1, 1, -1, -1 ), barCorner, barCorner );
     }
 
index 8811c746410982aa41f5b4201e4c74d0534ae279..803e066bcee2d421d9899d74b8f00f4376035d55 100644 (file)
@@ -95,6 +95,7 @@
         <file alias="go-next">pixmaps/go-next.png</file>
         <file alias="new.png">pixmaps/profile_new.png</file>
         <file alias="lock">pixmaps/lock.png</file>
+        <file alias="progress">pixmaps/progress.png</file>
     </qresource>
     <qresource prefix="/prefsmenu">
         <file alias="cone_audio_64">pixmaps/prefs/spref_cone_Audio_64.png</file>