summaryrefslogtreecommitdiff
Unidiff
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
@@ -23,7 +23,7 @@ InputDialog::InputDialog( QWidget* parent, const char* name, bool modal, WFlags
23{ 23{
24 if ( !name ) 24 if ( !name )
25 setName( "InputDialog" ); 25 setName( "InputDialog" );
26 resize( 234, 115); 26 resize( 234, 115);
27 setMaximumSize( QSize( 240, 40)); 27 setMaximumSize( QSize( 240, 40));
28 setCaption( tr(name ) ); 28 setCaption( tr(name ) );
29 29
@@ -35,18 +35,33 @@ InputDialog::InputDialog( QWidget* parent, const char* name, bool modal, WFlags
35 LineEdit1->setGeometry( QRect( 4, 10, 190, 22 ) ); 35 LineEdit1->setGeometry( QRect( 4, 10, 190, 22 ) );
36} 36}
37 37
38/* 38/*
39 * Destroys the object and frees any allocated resources 39 * Destroys the object and frees any allocated resources
40 */ 40 */
41InputDialog::~InputDialog() 41InputDialog::~InputDialog()
42{ 42{
43 inputText= LineEdit1->text(); 43 inputText= LineEdit1->text();
44 44
45} 45}
46 46
47void InputDialog::browse() { 47void InputDialog::browse() {
48 48
49 QString str = OFileDialog::getOpenFileName( 1,"/","", "audio/*;video/*;playlist/plain;audio/x-mpegurl", 0 ); 49 MimeTypes types;
50 QStringList audio, video, all;
51 audio << "audio/*";
52 audio << "playlist/plain";
53 audio << "audio/x-mpegurl";
54
55 video << "video/*";
56 video << "playlist/plain";
57
58 all += audio;
59 all += video;
60 types.insert("All Media Files", all );
61 types.insert("Audio", audio );
62 types.insert("Video", video );
63
64 QString str = OFileDialog::getOpenFileName( 1,"/","", types, 0 );
50 LineEdit1->setText(str); 65 LineEdit1->setText(str);
51} 66}
52 67