4 QString
AddDialog::str("");
6 AddDialog::AddDialog(QWidget
*parent
)
11 qDebug("AddDialog()");
15 AddDialog::~AddDialog()
18 qDebug("~AddDialog()");
22 QString
AddDialog::getString(QWidget
*parent
,
23 const QString
&titleText
,
24 const QString
&lableText
) {
26 AddDialog
*dialog
= new AddDialog(parent
);
27 dialog
->setWindowTitle(titleText
);
28 dialog
->label
->setText(lableText
);
29 dialog
->setModal(true);
30 connect(dialog
->okButton
,SIGNAL(clicked()),
31 dialog
,SLOT(returnStr()));
36 void AddDialog::returnStr() {
37 AddDialog::str
= lineEdit
->text();