EditableDatumLabel: Extend with function to differentiate positioning from dimensioning OVPs

This commit is contained in:
Abdullah Tahiri
2023-11-07 15:53:42 +01:00
committed by abdullahtahiriyo
parent c09793e811
commit 4a7f71449d
2 changed files with 19 additions and 2 deletions

View File

@@ -346,9 +346,10 @@ void EditableDatumLabel::setPoints(Base::Vector3d p1, Base::Vector3d p2)
}
// NOLINTNEXTLINE
void EditableDatumLabel::setLabelType(SoDatumLabel::Type type)
void EditableDatumLabel::setLabelType(SoDatumLabel::Type type, Function funct)
{
label->datumtype = type;
function = funct;
}
// NOLINTNEXTLINE
@@ -393,4 +394,10 @@ void EditableDatumLabel::setSpinboxVisibleToMouse(bool val)
spinBox->setAttribute(Qt::WA_TransparentForMouseEvents, !val);
}
EditableDatumLabel::Function EditableDatumLabel::getFunction()
{
return function;
}
#include "moc_EditableDatumLabel.cpp" // NOLINT