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