1 // File: PartSet_EditLine.h
2 // Created: 02 June 2014
3 // Author: Natalia ERMOLAEVA
5 #include <PartSet_EditLine.h>
9 PartSet_EditLine::PartSet_EditLine(QWidget* theParent)
12 myEditor = new QLineEdit(theParent);
14 connect(myEditor, SIGNAL(returnPressed()), this, SLOT(onStopEditing()));
17 void PartSet_EditLine::start(const QPoint& thePoint, double theValue)
19 myEditor->move(thePoint);
20 myEditor->setText(QString::number(theValue));
24 double PartSet_EditLine::getValue() const
26 return myEditor->text().toDouble();
29 void PartSet_EditLine::onStopEditing()
32 emit stopped(getValue());