author | zecke <zecke> | 2002-06-26 19:23:12 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-06-26 19:23:12 (UTC) |
commit | c229565c40d478555a9ed0aa4910b9ab8181884c (patch) (unidiff) | |
tree | 47fb5d00bf3c21ddd0e64dc4571f7dcba3516db9 /core/multimedia | |
parent | 7b3b485aff7fc5f5cdef40a7d4989295d5c8ab4a (diff) | |
download | opie-c229565c40d478555a9ed0aa4910b9ab8181884c.zip opie-c229565c40d478555a9ed0aa4910b9ab8181884c.tar.gz opie-c229565c40d478555a9ed0aa4910b9ab8181884c.tar.bz2 |
Adjust mimetype handling
LJP and Max look at it.
-rw-r--r-- | core/multimedia/opieplayer/inputDialog.cpp | 17 |
1 files changed, 16 insertions, 1 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 | |||
@@ -43,10 +43,25 @@ InputDialog::~InputDialog() | |||
43 | inputText= LineEdit1->text(); | 43 | inputText= LineEdit1->text(); |
44 | 44 | ||
45 | } | 45 | } |
46 | 46 | ||
47 | void InputDialog::browse() { | 47 | void 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 | ||