Qt4 - Use AutoRaise button for faster and slower in order to keep consistency in...
authorJean-Baptiste Kempf <jb@videolan.org>
Fri, 21 Dec 2007 20:34:34 +0000 (20:34 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 21 Dec 2007 20:34:34 +0000 (20:34 +0000)
modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/components/interface_widgets.hpp

index 5342ea4..c29d5a7 100644 (file)
@@ -411,15 +411,15 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i,
              THEMIM->getIM(), sliderUpdate( float ) );
 
     /** Slower and faster Buttons **/
-    slowerButton = new QPushButton;
-    slowerButton->setFlat( true );
+    slowerButton = new QToolButton;
+    slowerButton->setAutoRaise( true );
     slowerButton->setMaximumSize( QSize( 26, 20 ) );
 
     BUTTON_SET_ACT( slowerButton, "-", qtr( "Slower" ), slower() );
     controlLayout->addWidget( slowerButton, 0, 0 );
 
-    fasterButton = new QPushButton;
-    fasterButton->setFlat( true );
+    fasterButton = new QToolButton;
+    fasterButton->setAutoRaise( true );
     fasterButton->setMaximumSize( QSize( 26, 20 ) );
 
     BUTTON_SET_ACT( fasterButton, "+", qtr( "Faster" ), faster() );
index 544cb00..5bb8505 100644 (file)
@@ -141,6 +141,7 @@ class QGridLayout;
 class VolumeClickHandler;
 class SoundSlider;
 class QAbstractSlider;
+class QToolButton;
 
 class ControlsWidget : public QFrame
 {
@@ -169,7 +170,7 @@ private:
     InputSlider         *slider;
     QPushButton         *prevSectionButton, *nextSectionButton, *menuButton;
     QPushButton         *playButton, *fullscreenButton;
-    QPushButton         *slowerButton, *fasterButton;
+    QToolButton         *slowerButton, *fasterButton;
     AdvControlsWidget   *advControls;
     QLabel              *volMuteLabel;
     QAbstractSlider     *volumeSlider;