00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #include "inputDialog.h"
00017
00018 #include <qlineedit.h>
00019
00020
00021 InputDialog::InputDialog( QWidget* parent, const char* name, bool modal, WFlags fl )
00022 : QDialog( parent, name, modal, fl )
00023 {
00024 if ( !name )
00025 setName( "InputDialog" );
00026 resize( 234, 50 );
00027 setMaximumSize( QSize( 240, 50 ) );
00028 setCaption( tr(name ) );
00029
00030 LineEdit1 = new QLineEdit( this, "LineEdit1" );
00031 LineEdit1->setGeometry( QRect( 10, 10, 216, 22 ) );
00032 }
00033
00034 InputDialog::~InputDialog()
00035 {
00036 inputText = LineEdit1->text();
00037
00038 }
00039
00040 void InputDialog::setInputText(const QString &string)
00041 {
00042 LineEdit1->setText( string);
00043 }