Gui: Rename forumula to expression + add hotkey to expression tooltip

Fixes #10601
This commit is contained in:
atlast-50
2023-09-26 18:52:20 -04:00
committed by Yorik van Havre
parent 49dfaaefa0
commit c8fbe03eb1
3 changed files with 7 additions and 7 deletions

View File

@@ -23,7 +23,7 @@
</size>
</property>
<property name="windowTitle">
<string>Formula editor</string>
<string>Expression editor</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<property name="spacing">

View File

@@ -34,9 +34,9 @@ public:
void setExpressionText(const QString& text) {
if (text.isEmpty())
this->setToolTip(genericFormulaEditorTooltip);
this->setToolTip(genericExpressionEditorTooltip);
else
this->setToolTip(formulaEditorTooltipPrefix + text);
this->setToolTip(expressionEditorTooltipPrefix + text);
}
protected:
@@ -50,8 +50,8 @@ Q_SIGNALS:
private:
const QString genericFormulaEditorTooltip = tr("Enter an expression...");
const QString formulaEditorTooltipPrefix = tr("Expression: ");
const QString genericExpressionEditorTooltip = tr("Enter an expression... (=)");
const QString expressionEditorTooltipPrefix = tr("Expression: ");
};
#endif // QUANTITYSPINBOX_P_H