author | llornkcor <llornkcor> | 2002-06-18 11:54:37 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-06-18 11:54:37 (UTC) |
commit | 527fc7231eb1b058629f7479adbf4ead974a65de (patch) (unidiff) | |
tree | 35f62bd9191531c3c3ad33dd7657c3a28900f421 | |
parent | 8a2b6edfb829ca41e66d3345c9b3806330412905 (diff) | |
download | opie-527fc7231eb1b058629f7479adbf4ead974a65de.zip opie-527fc7231eb1b058629f7479adbf4ead974a65de.tar.gz opie-527fc7231eb1b058629f7479adbf4ead974a65de.tar.bz2 |
added more filetypes to open, such as audio and video.. that might help
-rw-r--r-- | core/multimedia/opieplayer/inputDialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/multimedia/opieplayer/inputDialog.cpp b/core/multimedia/opieplayer/inputDialog.cpp index f6cab2a..b46c154 100644 --- a/core/multimedia/opieplayer/inputDialog.cpp +++ b/core/multimedia/opieplayer/inputDialog.cpp | |||
@@ -17,36 +17,36 @@ | |||
17 | #include <qvariant.h> | 17 | #include <qvariant.h> |
18 | #include <qpushbutton.h> | 18 | #include <qpushbutton.h> |
19 | #include <qwhatsthis.h> | 19 | #include <qwhatsthis.h> |
20 | 20 | ||
21 | InputDialog::InputDialog( QWidget* parent, const char* name, bool modal, WFlags fl ) | 21 | InputDialog::InputDialog( QWidget* parent, const char* name, bool modal, WFlags fl ) |
22 | : QDialog( parent, name, modal, fl ) | 22 | : QDialog( parent, name, modal, fl ) |
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 | ||
30 | QPushButton *browserButton; | 30 | QPushButton *browserButton; |
31 | browserButton = new QPushButton( Resource::loadIconSet("fileopen"),"",this,"BrowseButton"); | 31 | browserButton = new QPushButton( Resource::loadIconSet("fileopen"),"",this,"BrowseButton"); |
32 | browserButton->setGeometry( QRect( 205, 10, 22, 22)); | 32 | browserButton->setGeometry( QRect( 205, 10, 22, 22)); |
33 | connect( browserButton, SIGNAL(released()),this,SLOT(browse())); | 33 | connect( browserButton, SIGNAL(released()),this,SLOT(browse())); |
34 | LineEdit1 = new QLineEdit( this, "LineEdit1" ); | 34 | LineEdit1 = new QLineEdit( this, "LineEdit1" ); |
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 | */ |
41 | InputDialog::~InputDialog() | 41 | InputDialog::~InputDialog() |
42 | { | 42 | { |
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,"/","", "playlist/plain;audio/x-mpegurl", 0 ); | 49 | QString str = OFileDialog::getOpenFileName( 1,"/","", "audio/*;video/*;playlist/plain;audio/x-mpegurl", 0 ); |
50 | LineEdit1->setText(str); | 50 | LineEdit1->setText(str); |
51 | } | 51 | } |
52 | 52 | ||