summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/multimedia/opieplayer/inputDialog.cpp23
1 files changed, 19 insertions, 4 deletions
diff --git a/core/multimedia/opieplayer/inputDialog.cpp b/core/multimedia/opieplayer/inputDialog.cpp
index b46c154..da8e276 100644
--- a/core/multimedia/opieplayer/inputDialog.cpp
+++ b/core/multimedia/opieplayer/inputDialog.cpp
@@ -25,3 +25,3 @@ InputDialog::InputDialog( QWidget* parent, const char* name, bool modal, WFlags
setName( "InputDialog" );
- resize( 234, 115);
+ resize( 234, 115);
setMaximumSize( QSize( 240, 40));
@@ -37,3 +37,3 @@ InputDialog::InputDialog( QWidget* parent, const char* name, bool modal, WFlags
-/*
+/*
* Destroys the object and frees any allocated resources
@@ -43,3 +43,3 @@ InputDialog::~InputDialog()
inputText= LineEdit1->text();
-
+
}
@@ -48,3 +48,18 @@ void InputDialog::browse() {
- QString str = OFileDialog::getOpenFileName( 1,"/","", "audio/*;video/*;playlist/plain;audio/x-mpegurl", 0 );
+ MimeTypes types;
+ QStringList audio, video, all;
+ audio << "audio/*";
+ audio << "playlist/plain";
+ audio << "audio/x-mpegurl";
+
+ video << "video/*";
+ video << "playlist/plain";
+
+ all += audio;
+ all += video;
+ types.insert("All Media Files", all );
+ types.insert("Audio", audio );
+ types.insert("Video", video );
+
+ QString str = OFileDialog::getOpenFileName( 1,"/","", types, 0 );
LineEdit1->setText(str);