5 QString
AddDialog::str("");
7 AddDialog::AddDialog(QWidget
*parent
)
11 D_OUTPUT("AddDialog()")
14 AddDialog::~AddDialog()
16 D_OUTPUT("~AddDialog()")
19 QString
AddDialog::getString(QWidget
*parent
,
20 const QString
&titleText
,
21 const QString
&lableText
) {
23 AddDialog
*dialog
= new AddDialog(parent
);
24 dialog
->setWindowTitle(titleText
);
25 dialog
->label
->setText(lableText
);
26 dialog
->setModal(true);
27 connect(dialog
->okButton
,SIGNAL(clicked()),
28 dialog
,SLOT(returnStr()));
33 void AddDialog::returnStr() {
34 AddDialog::str
= lineEdit
->text();