Diffstat (limited to 'core/multimedia/opieplayer/inputDialog.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/multimedia/opieplayer/inputDialog.cpp | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/core/multimedia/opieplayer/inputDialog.cpp b/core/multimedia/opieplayer/inputDialog.cpp index b443747..b80d129 100644 --- a/core/multimedia/opieplayer/inputDialog.cpp +++ b/core/multimedia/opieplayer/inputDialog.cpp | |||
@@ -8,30 +8,31 @@ | |||
8 | ****************************************************************************/ | 8 | ****************************************************************************/ |
9 | #include "inputDialog.h" | 9 | #include "inputDialog.h" |
10 | 10 | ||
11 | #include <qpe/resource.h> | ||
12 | |||
13 | #include <opie/ofiledialog.h> | ||
14 | |||
11 | #include <qlineedit.h> | 15 | #include <qlineedit.h> |
12 | #include <qlayout.h> | 16 | #include <qlayout.h> |
13 | #include <qvariant.h> | 17 | #include <qvariant.h> |
14 | #include <qtooltip.h> | 18 | #include <qpushbutton.h> |
15 | #include <qwhatsthis.h> | 19 | #include <qwhatsthis.h> |
16 | 20 | ||
17 | /* | ||
18 | * Constructs a InputDialog which is a child of 'parent', with the | ||
19 | * name 'name' and widget flags set to 'f' | ||
20 | * | ||
21 | * The dialog will by default be modeless, unless you set 'modal' to | ||
22 | * TRUE to construct a modal dialog. | ||
23 | */ | ||
24 | InputDialog::InputDialog( QWidget* parent, const char* name, bool modal, WFlags fl ) | 21 | InputDialog::InputDialog( QWidget* parent, const char* name, bool modal, WFlags fl ) |
25 | : QDialog( parent, name, modal, fl ) | 22 | : QDialog( parent, name, modal, fl ) |
26 | { | 23 | { |
27 | if ( !name ) | 24 | if ( !name ) |
28 | setName( "InputDialog" ); | 25 | setName( "InputDialog" ); |
29 | resize( 234, 50 ); | 26 | resize( 234, 115); |
30 | setMaximumSize( QSize( 240, 50 ) ); | 27 | setMaximumSize( QSize( 240, 40)); |
31 | setCaption( tr(name ) ); | 28 | setCaption( tr(name ) ); |
32 | 29 | ||
30 | QPushButton *browserButton; | ||
31 | browserButton = new QPushButton( Resource::loadIconSet("fileopen"),"",this,"BrowseButton"); | ||
32 | browserButton->setGeometry( QRect( 205, 10, 22, 22)); | ||
33 | connect( browserButton, SIGNAL(released()),this,SLOT(browse())); | ||
33 | LineEdit1 = new QLineEdit( this, "LineEdit1" ); | 34 | LineEdit1 = new QLineEdit( this, "LineEdit1" ); |
34 | LineEdit1->setGeometry( QRect( 10, 10, 216, 22 ) ); | 35 | LineEdit1->setGeometry( QRect( 4, 10, 190, 22 ) ); |
35 | } | 36 | } |
36 | 37 | ||
37 | /* | 38 | /* |
@@ -43,3 +44,9 @@ InputDialog::~InputDialog() | |||
43 | 44 | ||
44 | } | 45 | } |
45 | 46 | ||
47 | void InputDialog::browse() { | ||
48 | |||
49 | QString str = OFileDialog::getOpenFileName( 1,"/","", "playlist/plain", 0 ); | ||
50 | LineEdit1->setText(str); | ||
51 | } | ||
52 | |||