- QString anExpression("([0-9]*\\.?[0-9]+([eE][-+]?[0-9]+)?)|([_a-zA-Z][a-zA-Z0-9_]*)");
- aEditor->setValidator(new QRegExpValidator(QRegExp(anExpression), aEditor));
- QObject::connect(aEditor, SIGNAL(returnPressed()), aLineEditAction, SIGNAL(triggered()));
- QObject::connect(aLineEditAction, SIGNAL(triggered()), aPopup, SLOT(hide()));
+ QObject::connect(aEditor, SIGNAL(editingFinished()), &aDlg, SLOT(accept()));