Skip to content

Commit

Permalink
EditableDatumLabel add 'isInEdit' to check if the label is in edit.
Browse files Browse the repository at this point in the history
  • Loading branch information
PaddleStroke authored and abdullahtahiriyo committed Oct 20, 2023
1 parent b3f8745 commit 98e4f84
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Gui/EditableDatumLabel.cpp
Expand Up @@ -168,6 +168,12 @@ void EditableDatumLabel::stopEdit()
}
}

bool EditableDatumLabel::isInEdit()
{
return spinBox;
}


double EditableDatumLabel::getValue()
{
return spinBox->rawValue();
Expand Down
1 change: 1 addition & 0 deletions src/Gui/EditableDatumLabel.h
Expand Up @@ -53,6 +53,7 @@ class GuiExport EditableDatumLabel : public QObject

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);
Expand Down

0 comments on commit 98e4f84

Please sign in to comment.