Commit fdf01c5f authored by Florent D'Halluin's avatar Florent D'Halluin
Browse files

[yavgui] Tweak dialog boxes.

* yavgui/src/dialog_eval.cc,
* yavgui/src/dialog_eval.hh,
* yavgui/src/dialog_get_label.cc: Do that.
parent 01f285b8
2009-08-06 d-halluin <d-halluin@lrde.epita.fr>
[yavgui] Tweak dialog boxes.
* yavgui/src/dialog_eval.cc,
* yavgui/src/dialog_eval.hh,
* yavgui/src/dialog_get_label.cc: Do that.
2009-08-06 d-halluin <d-halluin@lrde.epita.fr>
 
[yavgui] Add & enable addTransition.
......
......@@ -30,7 +30,7 @@ namespace gui
{
DialogEval::DialogEval (QString* str)
: str_ (str),
input_ (new QTextEdit ())
input_ (new QLineEdit ())
{
QPushButton *closeButton = new QPushButton(tr("Ok"));
connect(closeButton, SIGNAL(clicked()), this, SLOT(done()));
......@@ -44,13 +44,13 @@ namespace gui
mainLayout->addLayout(buttonsLayout);
setLayout(mainLayout);
setWindowTitle(tr("Enter an expression"));
setWindowTitle(tr("Expression"));
}
void DialogEval::done ()
{
if (str_)
*str_ = input_->toPlainText ();
*str_ = input_->text ();
emit close ();
}
......
......@@ -46,7 +46,7 @@ namespace gui
private:
QString* str_;
QTextEdit* input_;
QLineEdit* input_;
};
} // ! namespace dialogs
......
......@@ -43,7 +43,7 @@ namespace gui
mainLayout->addLayout(buttonsLayout);
setLayout(mainLayout);
setWindowTitle(tr("Enter a label"));
setWindowTitle(tr("Label"));
}
void DialogGetLabel::done ()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment