Commit e6825471 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4: Change the UI to allow startime in double.

parent 3cac0a48
...@@ -164,7 +164,7 @@ OpenDialog::OpenDialog( QWidget *parent, ...@@ -164,7 +164,7 @@ OpenDialog::OpenDialog( QWidget *parent,
CONNECT( ui.slaveCheckbox, toggled( bool ), this, updateMRL() ); CONNECT( ui.slaveCheckbox, toggled( bool ), this, updateMRL() );
CONNECT( ui.slaveText, textChanged( const QString& ), this, updateMRL() ); CONNECT( ui.slaveText, textChanged( const QString& ), this, updateMRL() );
CONNECT( ui.cacheSpinBox, valueChanged( int ), this, updateMRL() ); CONNECT( ui.cacheSpinBox, valueChanged( int ), this, updateMRL() );
CONNECT( ui.startTimeSpinBox, valueChanged( int ), this, updateMRL() ); CONNECT( ui.startTimeDoubleSpinBox, valueChanged( double ), this, updateMRL() );
BUTTONACT( ui.advancedCheckBox, toggleAdvancedPanel() ); BUTTONACT( ui.advancedCheckBox, toggleAdvancedPanel() );
BUTTONACT( ui.slaveBrowseButton, browseInputSlave() ); BUTTONACT( ui.slaveBrowseButton, browseInputSlave() );
...@@ -417,9 +417,8 @@ void OpenDialog::updateMRL() { ...@@ -417,9 +417,8 @@ void OpenDialog::updateMRL() {
mrl += QString( " :%1=%2" ).arg( storedMethod ). mrl += QString( " :%1=%2" ).arg( storedMethod ).
arg( ui.cacheSpinBox->value() ); arg( ui.cacheSpinBox->value() );
} }
if( ui.startTimeSpinBox->value() ) { if( ui.startTimeDoubleSpinBox->value() ) {
mrl += " :start-time=" + QString( "%1" ). mrl += " :start-time=" + QString::number( ui.startTimeDoubleSpinBox->value() );
arg( ui.startTimeSpinBox->value() );
} }
ui.advancedLineInput->setText( mrl ); ui.advancedLineInput->setText( mrl );
ui.mrlLine->setText( itemsMRL.join( " " ) ); ui.mrlLine->setText( itemsMRL.join( " " ) );
......
This diff is collapsed.
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