From: Jean-Baptiste Kempf Date: Sat, 26 Jul 2008 23:13:34 +0000 (-0700) Subject: Forgotten method for Input Slave Selection. X-Git-Tag: 0.9.0-test3~233 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=464d09b0d51fc13e598eb2100dbcf384298be371;p=vlc Forgotten method for Input Slave Selection. --- diff --git a/modules/gui/qt4/dialogs/open.cpp b/modules/gui/qt4/dialogs/open.cpp index 02826db4b3..f4ded0ce74 100644 --- a/modules/gui/qt4/dialogs/open.cpp +++ b/modules/gui/qt4/dialogs/open.cpp @@ -148,6 +148,7 @@ OpenDialog::OpenDialog( QWidget *parent, CONNECT( ui.cacheSpinBox, valueChanged( int ), this, updateMRL() ); CONNECT( ui.startTimeSpinBox, valueChanged( int ), this, updateMRL() ); BUTTONACT( ui.advancedCheckBox, toggleAdvancedPanel() ); + BUTTONACT( ui.slaveBrowseButton, browseInputSlave() ); /* Buttons action */ BUTTONACT( playButton, selectSlots() ); @@ -419,3 +420,11 @@ QStringList OpenDialog::SeparateEntries( QString entries ) return entries_array; } + +void OpenDialog::browseInputSlave() +{ + OpenDialog *od = new OpenDialog( this, p_intf, true, SELECT ); + od->exec(); + ui.slaveText->setText( od->getMRL() ); + delete od; +} diff --git a/modules/gui/qt4/dialogs/open.hpp b/modules/gui/qt4/dialogs/open.hpp index 73a07e48bb..ea287b8b34 100644 --- a/modules/gui/qt4/dialogs/open.hpp +++ b/modules/gui/qt4/dialogs/open.hpp @@ -113,6 +113,7 @@ private slots: void updateMRL(); void newCachingMethod( QString ); void signalCurrent(); + void browseInputSlave(); }; #endif