Commit 30d0aba7 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4 - Use AutoRaise button for faster and slower in order to keep consistency in the interface.

parent 497b2dcc
...@@ -411,15 +411,15 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i, ...@@ -411,15 +411,15 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i,
THEMIM->getIM(), sliderUpdate( float ) ); THEMIM->getIM(), sliderUpdate( float ) );
/** Slower and faster Buttons **/ /** Slower and faster Buttons **/
slowerButton = new QPushButton; slowerButton = new QToolButton;
slowerButton->setFlat( true ); slowerButton->setAutoRaise( true );
slowerButton->setMaximumSize( QSize( 26, 20 ) ); slowerButton->setMaximumSize( QSize( 26, 20 ) );
BUTTON_SET_ACT( slowerButton, "-", qtr( "Slower" ), slower() ); BUTTON_SET_ACT( slowerButton, "-", qtr( "Slower" ), slower() );
controlLayout->addWidget( slowerButton, 0, 0 ); controlLayout->addWidget( slowerButton, 0, 0 );
fasterButton = new QPushButton; fasterButton = new QToolButton;
fasterButton->setFlat( true ); fasterButton->setAutoRaise( true );
fasterButton->setMaximumSize( QSize( 26, 20 ) ); fasterButton->setMaximumSize( QSize( 26, 20 ) );
BUTTON_SET_ACT( fasterButton, "+", qtr( "Faster" ), faster() ); BUTTON_SET_ACT( fasterButton, "+", qtr( "Faster" ), faster() );
......
...@@ -141,6 +141,7 @@ class QGridLayout; ...@@ -141,6 +141,7 @@ class QGridLayout;
class VolumeClickHandler; class VolumeClickHandler;
class SoundSlider; class SoundSlider;
class QAbstractSlider; class QAbstractSlider;
class QToolButton;
class ControlsWidget : public QFrame class ControlsWidget : public QFrame
{ {
...@@ -169,7 +170,7 @@ private: ...@@ -169,7 +170,7 @@ private:
InputSlider *slider; InputSlider *slider;
QPushButton *prevSectionButton, *nextSectionButton, *menuButton; QPushButton *prevSectionButton, *nextSectionButton, *menuButton;
QPushButton *playButton, *fullscreenButton; QPushButton *playButton, *fullscreenButton;
QPushButton *slowerButton, *fasterButton; QToolButton *slowerButton, *fasterButton;
AdvControlsWidget *advControls; AdvControlsWidget *advControls;
QLabel *volMuteLabel; QLabel *volMuteLabel;
QAbstractSlider *volumeSlider; QAbstractSlider *volumeSlider;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment