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

Qt4 - Goto Time, IA

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