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 0894d5bdae
commit 89df605c3b

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