Expression editor: Qt-workaround for '='-key; compare with text() instead.

This commit is contained in:
Eivind Kvedalen
2015-09-24 00:23:57 +02:00
committed by wmayer
parent 93ccf14b6e
commit c5fdb0883d

View File

@@ -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())