From bf62b8f48d08f5a5e92681e1487a5f43d5c7a231 Mon Sep 17 00:00:00 2001 From: llornkcor Date: Sun, 03 Nov 2002 21:45:32 +0000 Subject: m3u stuff and op2 skins --- (limited to 'core/multimedia/opieplayer/inputDialog.cpp') diff --git a/core/multimedia/opieplayer/inputDialog.cpp b/core/multimedia/opieplayer/inputDialog.cpp index da8e276..62240b2 100644 --- a/core/multimedia/opieplayer/inputDialog.cpp +++ b/core/multimedia/opieplayer/inputDialog.cpp @@ -1,11 +1,3 @@ -/**************************************************************************** -** Form implementation generated from reading ui file 'inputDialog.ui' -** -** Created: Sat Mar 2 07:55:03 2002 -** by: The User Interface Compiler (uic) -** -** WARNING! All changes made in this file will be lost! -****************************************************************************/ #include "inputDialog.h" #include @@ -19,13 +11,13 @@ #include InputDialog::InputDialog( QWidget* parent, const char* name, bool modal, WFlags fl ) - : QDialog( parent, name, modal, fl ) -{ - if ( !name ) - setName( "InputDialog" ); + : QDialog( parent, name, modal, fl ) { + if ( !name ) { + setName( "InputDialog" ); + } resize( 234, 115); setMaximumSize( QSize( 240, 40)); - setCaption( tr(name ) ); + setCaption( tr( name ) ); QPushButton *browserButton; browserButton = new QPushButton( Resource::loadIconSet("fileopen"),"",this,"BrowseButton"); @@ -33,15 +25,18 @@ InputDialog::InputDialog( QWidget* parent, const char* name, bool modal, WFlags connect( browserButton, SIGNAL(released()),this,SLOT(browse())); LineEdit1 = new QLineEdit( this, "LineEdit1" ); LineEdit1->setGeometry( QRect( 4, 10, 190, 22 ) ); + LineEdit1->setFocus(); +} +/* + * return the current text(input) + */ +QString InputDialog::text() const { + return LineEdit1->text(); } - /* * Destroys the object and frees any allocated resources */ -InputDialog::~InputDialog() -{ - inputText= LineEdit1->text(); - +InputDialog::~InputDialog() { } void InputDialog::browse() { -- cgit v0.9.0.2