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

Qt4 - Goto Time, IA

parent d3efb9b0
...@@ -24,8 +24,10 @@ ...@@ -24,8 +24,10 @@
#include "dialogs/gototime.hpp" #include "dialogs/gototime.hpp"
#include "dialogs_provider.hpp" #include "dialogs_provider.hpp"
#include "main_interface.hpp"
#include "util/qvlcframe.hpp" #include "util/qvlcframe.hpp"
#include "qt4.hpp" #include "qt4.hpp"
#include "input_manager.hpp"
#include <QTabWidget> #include <QTabWidget>
#include <QFile> #include <QFile>
...@@ -89,8 +91,20 @@ GotoTimeDialog::~GotoTimeDialog() ...@@ -89,8 +91,20 @@ GotoTimeDialog::~GotoTimeDialog()
{ {
} }
void GotoTimeDialog::cancel()
{
timeEdit->setTime( QTime( 0, 0, 0) );
this->toggleVisible();
}
void GotoTimeDialog::close() void GotoTimeDialog::close()
{ {
vlc_value_t val;
if ( THEMIM->getIM()->hasInput() )
{
val.i_time = QTime( 0, 0, 0 ).msecsTo( timeEdit->time() );
var_Set( THEMIM->getInput(), "time", val );
}
this->toggleVisible(); this->toggleVisible();
} }
...@@ -45,6 +45,7 @@ private: ...@@ -45,6 +45,7 @@ private:
static GotoTimeDialog *instance; static GotoTimeDialog *instance;
public slots: public slots:
void close(); void close();
void cancel();
}; };
#endif #endif
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