Gui: Rename forumula to expression + add hotkey to expression tooltip
Fixes #10601
This commit is contained in:
committed by
Yorik van Havre
parent
49dfaaefa0
commit
c8fbe03eb1
@@ -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">
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user