Commit 8664e302 authored by yoann's avatar yoann
Browse files

* qt open dialog: double click plays the selected file

parent ef627df2
......@@ -25,6 +25,7 @@
#include "qt4.hpp"
#include "components/open.hpp"
#include "dialogs/open.hpp"
#include "dialogs_provider.hpp"
#include "util/customwidgets.hpp"
......@@ -181,6 +182,10 @@ void FileOpenPanel::accept()
if ( ui.fileInput->count() > 8 ) ui.fileInput->removeItem(0);
}
void FileOpenBox::accept()
{
OpenDialog::getInstance( NULL, NULL )->play();
}
/* Function called by Open Dialog when clicked on cancel */
void FileOpenPanel::clear()
......
......@@ -63,7 +63,7 @@ public:
const QString &directory, const QString &filter ):
QFileDialog( parent, caption, directory, filter ) {}
public slots:
void accept() {}
void accept();
};
class FileOpenPanel: public OpenPanel
......
......@@ -51,6 +51,8 @@ public:
QString mrl;
QString mainMRL;
public slots:
void play();
private:
static OpenDialog *instance;
input_thread_t *p_input;
......@@ -69,7 +71,6 @@ private:
QStringList SeparateEntries( QString );
private slots:
void cancel();
void play();
void enqueue();
void toggleAdvancedPanel();
void updateMRL( QString );
......
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