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