Commit 497b2dcc authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4 - SpeedSlider, use an AutoRaise button for the Normal Rate.

Remove and unneeded member in the class.
parent 8c7c961f
...@@ -822,17 +822,18 @@ SpeedControlWidget::SpeedControlWidget( intf_thread_t *_p_i ) : ...@@ -822,17 +822,18 @@ SpeedControlWidget::SpeedControlWidget( intf_thread_t *_p_i ) :
CONNECT( speedSlider, valueChanged( int ), this, updateRate( int ) ); CONNECT( speedSlider, valueChanged( int ), this, updateRate( int ) );
normalSpeedButton = new QPushButton( "N" ); QToolButton *normalSpeedButton = new QToolButton( this );
normalSpeedButton->setMaximumSize( QSize( 26, 20 ) ); normalSpeedButton->setMaximumSize( QSize( 26, 20 ) );
normalSpeedButton->setFlat( true ); normalSpeedButton->setAutoRaise( true );
normalSpeedButton->setText( "N" );
normalSpeedButton->setToolTip( qtr( "Revert to normal play speed" ) ); normalSpeedButton->setToolTip( qtr( "Revert to normal play speed" ) );
CONNECT( normalSpeedButton, clicked(), this, resetRate() ); CONNECT( normalSpeedButton, clicked(), this, resetRate() );
QVBoxLayout *speedControlLayout = new QVBoxLayout; QVBoxLayout *speedControlLayout = new QVBoxLayout;
speedControlLayout->addWidget(speedSlider); speedControlLayout->addWidget( speedSlider );
speedControlLayout->addWidget(normalSpeedButton); speedControlLayout->addWidget( normalSpeedButton );
setLayout(speedControlLayout); setLayout( speedControlLayout );
} }
SpeedControlWidget::~SpeedControlWidget() SpeedControlWidget::~SpeedControlWidget()
......
...@@ -243,7 +243,6 @@ public: ...@@ -243,7 +243,6 @@ public:
private: private:
intf_thread_t *p_intf; intf_thread_t *p_intf;
QSlider *speedSlider; QSlider *speedSlider;
QPushButton *normalSpeedButton;
private slots: private slots:
void updateRate( int ); void updateRate( int );
void resetRate(); void resetRate();
......
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