QuantitySpinBox: add function to set/change tooltip at runtime

This commit is contained in:
donovaly
2020-01-06 17:22:04 +01:00
committed by Yorik van Havre
parent 8eb9cb7802
commit 910022bafd
2 changed files with 14 additions and 0 deletions

View File

@@ -290,6 +290,16 @@ void Gui::QuantitySpinBox::setExpression(boost::shared_ptr<Expression> 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()) {