From c5fdb0883d7cdc73bb4b780dcc2ee551ade34628 Mon Sep 17 00:00:00 2001 From: Eivind Kvedalen Date: Thu, 24 Sep 2015 00:23:57 +0200 Subject: [PATCH] Expression editor: Qt-workaround for '='-key; compare with text() instead. --- src/Gui/QuantitySpinBox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gui/QuantitySpinBox.cpp b/src/Gui/QuantitySpinBox.cpp index e0d8d583f2..697bdc287e 100644 --- a/src/Gui/QuantitySpinBox.cpp +++ b/src/Gui/QuantitySpinBox.cpp @@ -394,7 +394,7 @@ void QuantitySpinBox::resizeEvent(QResizeEvent * event) void Gui::QuantitySpinBox::keyPressEvent(QKeyEvent *event) { - if (event->key() == Qt::Key_Equal && isBound()) + if (event->text() == QString::fromUtf8("=") && isBound()) openFormulaDialog(); else { if (!hasExpression())