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