EditableDatumLabel add 'isInEdit' to check if the label is in edit.
This commit is contained in:
@@ -168,6 +168,12 @@ void EditableDatumLabel::stopEdit()
|
||||
}
|
||||
}
|
||||
|
||||
bool EditableDatumLabel::isInEdit()
|
||||
{
|
||||
return spinBox;
|
||||
}
|
||||
|
||||
|
||||
double EditableDatumLabel::getValue()
|
||||
{
|
||||
return spinBox->rawValue();
|
||||
|
||||
@@ -53,6 +53,7 @@ public:
|
||||
|
||||
void startEdit(double val, QObject* eventFilteringObj = nullptr);
|
||||
void stopEdit();
|
||||
bool isInEdit();
|
||||
double getValue();
|
||||
void setSpinboxValue(double val, const Base::Unit& unit = Base::Unit::Length);
|
||||
void setPlacement(const Base::Placement& plc);
|
||||
|
||||
Reference in New Issue
Block a user