diff --git a/src/Gui/QuantitySpinBox.cpp b/src/Gui/QuantitySpinBox.cpp index 8b2ecd0245..f359d0a266 100644 --- a/src/Gui/QuantitySpinBox.cpp +++ b/src/Gui/QuantitySpinBox.cpp @@ -290,6 +290,16 @@ void Gui::QuantitySpinBox::setExpression(boost::shared_ptr expr) } } +void Gui::QuantitySpinBox::setTooltipLE(const QString &name) +{ + lineEdit()->setToolTip(name); +} + +void Gui::QuantitySpinBox::setTooltipIL(const QString &name) +{ + iconLabel->setToolTip(name); +} + QString QuantitySpinBox::boundToName() const { if (isBound()) { diff --git a/src/Gui/QuantitySpinBox.h b/src/Gui/QuantitySpinBox.h index cc9c9ddaea..0a4a2b5da7 100644 --- a/src/Gui/QuantitySpinBox.h +++ b/src/Gui/QuantitySpinBox.h @@ -129,6 +129,10 @@ public: bool event(QEvent *event); void setExpression(boost::shared_ptr expr); + /// Sets a tooltip for the LineEdit + void setTooltipLE(const QString &name); + /// Sets a tooltip for the IconLabel + void setTooltipIL(const QString &name); void bind(const App::ObjectIdentifier &_path); bool apply(const std::string &propName);