summaryrefslogtreecommitdiff
path: root/core/multimedia/opieplayer/inputDialog.cpp
authorllornkcor <llornkcor>2002-04-26 23:55:00 (UTC)
committer llornkcor <llornkcor>2002-04-26 23:55:00 (UTC)
commit8ca9c8dad17ccaee9b0b8132324176c2a8e40526 (patch) (side-by-side diff)
tree2a6b7cf8a2d5a45d32065cde00ed8399b5ef91d8 /core/multimedia/opieplayer/inputDialog.cpp
parent75b32567bfeb67ed71877c4fa9e918c836a8a68b (diff)
downloadopie-8ca9c8dad17ccaee9b0b8132324176c2a8e40526.zip
opie-8ca9c8dad17ccaee9b0b8132324176c2a8e40526.tar.gz
opie-8ca9c8dad17ccaee9b0b8132324176c2a8e40526.tar.bz2
fixed playing from audio/video list. added images from config file
Diffstat (limited to 'core/multimedia/opieplayer/inputDialog.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/multimedia/opieplayer/inputDialog.cpp29
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 @@
****************************************************************************/
#include "inputDialog.h"
+#include <qpe/resource.h>
+
+#include <opie/ofiledialog.h>
+
#include <qlineedit.h>
#include <qlayout.h>
#include <qvariant.h>
-#include <qtooltip.h>
+#include <qpushbutton.h>
#include <qwhatsthis.h>
-/*
- * Constructs a InputDialog which is a child of 'parent', with the
- * name 'name' and widget flags set to 'f'
- *
- * The dialog will by default be modeless, unless you set 'modal' to
- * TRUE to construct a modal dialog.
- */
InputDialog::InputDialog( QWidget* parent, const char* name, bool modal, WFlags fl )
: QDialog( parent, name, modal, fl )
{
if ( !name )
setName( "InputDialog" );
- resize( 234, 50 );
- setMaximumSize( QSize( 240, 50 ) );
+ resize( 234, 115);
+ setMaximumSize( QSize( 240, 40));
setCaption( tr(name ) );
+ QPushButton *browserButton;
+ browserButton = new QPushButton( Resource::loadIconSet("fileopen"),"",this,"BrowseButton");
+ browserButton->setGeometry( QRect( 205, 10, 22, 22));
+ connect( browserButton, SIGNAL(released()),this,SLOT(browse()));
LineEdit1 = new QLineEdit( this, "LineEdit1" );
- LineEdit1->setGeometry( QRect( 10, 10, 216, 22 ) );
+ LineEdit1->setGeometry( QRect( 4, 10, 190, 22 ) );
}
/*
@@ -43,3 +44,9 @@ InputDialog::~InputDialog()
}
+void InputDialog::browse() {
+
+ QString str = OFileDialog::getOpenFileName( 1,"/","", "playlist/plain", 0 );
+ LineEdit1->setText(str);
+}
+