EditableDatumLabel add 'isInEdit' to check if the label is in edit.

This commit is contained in:
Paddle
2023-10-17 18:59:54 +02:00
committed by abdullahtahiriyo
parent 6c2493799e
commit ecdbd69db5
2 changed files with 7 additions and 0 deletions

View File

@@ -168,6 +168,12 @@ void EditableDatumLabel::stopEdit()
}
}
bool EditableDatumLabel::isInEdit()
{
return spinBox;
}
double EditableDatumLabel::getValue()
{
return spinBox->rawValue();

View File

@@ -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);