From e68254717f45c7a5edba2c360c20f4227359cbfb Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Kempf Date: Fri, 1 May 2009 01:01:22 +0200 Subject: [PATCH] Qt4: Change the UI to allow startime in double. --- modules/gui/qt4/dialogs/open.cpp | 7 +- modules/gui/qt4/ui/open.ui | 233 ++++++++++++++++--------------- 2 files changed, 120 insertions(+), 120 deletions(-) diff --git a/modules/gui/qt4/dialogs/open.cpp b/modules/gui/qt4/dialogs/open.cpp index 90b36244fe..836e7741e6 100644 --- a/modules/gui/qt4/dialogs/open.cpp +++ b/modules/gui/qt4/dialogs/open.cpp @@ -164,7 +164,7 @@ OpenDialog::OpenDialog( QWidget *parent, CONNECT( ui.slaveCheckbox, toggled( bool ), this, updateMRL() ); CONNECT( ui.slaveText, textChanged( const QString& ), 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.slaveBrowseButton, browseInputSlave() ); @@ -417,9 +417,8 @@ void OpenDialog::updateMRL() { mrl += QString( " :%1=%2" ).arg( storedMethod ). arg( ui.cacheSpinBox->value() ); } - if( ui.startTimeSpinBox->value() ) { - mrl += " :start-time=" + QString( "%1" ). - arg( ui.startTimeSpinBox->value() ); + if( ui.startTimeDoubleSpinBox->value() ) { + mrl += " :start-time=" + QString::number( ui.startTimeDoubleSpinBox->value() ); } ui.advancedLineInput->setText( mrl ); ui.mrlLine->setText( itemsMRL.join( " " ) ); diff --git a/modules/gui/qt4/ui/open.ui b/modules/gui/qt4/ui/open.ui index 8c72845880..a3748689de 100644 --- a/modules/gui/qt4/ui/open.ui +++ b/modules/gui/qt4/ui/open.ui @@ -1,11 +1,12 @@ - + + Jean-Baptiste Kempf Open - - + + true - + 0 0 @@ -13,70 +14,70 @@ 387 - - + + 0 0 - + 400 0 - + Dialog - - - + + + - - - + + + Show extended options - + Show &more options - - - - - - + + + + + + Caching - + cacheSpinBox - - - + + + Change the caching for the media - + Qt::AlignRight - + ms - + 65535 - + - + Qt::Horizontal - + 16 24 @@ -84,38 +85,22 @@ - - - + + + Start Time - - startTimeSpinBox + + startTimeDoubleSpinBox - - - - Change the start time for the media - - - Qt::AlignRight - - - s - - - 65535 - - - - + - + Qt::Horizontal - + 40 20 @@ -123,82 +108,98 @@ - - + + - - - + + + Play another media synchronously (extra audio file, ...) - - - + + + Extra media - + slaveText - - + + - - - + + + Select the file - + Browse... - - + + - - - + + + MRL - + advancedLineInput - - - + + + true - - - + + + Complete MRL for VLC internal - - - + + + Edit Options + + + + Change the start time for the media + + + Qt::AlignRight + + + s + + + 1 + + + - + - + Qt::Horizontal - + 40 20 @@ -206,65 +207,65 @@ - - - - + + + + 0 0 - + 16 16777215 - + Qt::ClickFocus - + Select play mode - + QToolButton::InstantPopup - + Qt::NoArrow - - - - + + + + 0 0 - + 0 0 - + Play - + true - - - - + + + + 0 0 - + QDialogButtonBox::NoButton @@ -275,7 +276,7 @@ Tab advancedCheckBox cacheSpinBox - startTimeSpinBox + startTimeDoubleSpinBox slaveCheckbox slaveText slaveBrowseButton @@ -291,11 +292,11 @@ slaveLabel setVisible(bool) - + 54 384 - + 63 410 @@ -307,11 +308,11 @@ slaveText setVisible(bool) - + 127 387 - + 136 406 @@ -323,11 +324,11 @@ slaveBrowseButton setVisible(bool) - + 219 102 - + 386 131 -- 2.39.2