Expression editor: Qt-workaround for '='-key; compare with text() instead.
This commit is contained in:
parent
0894d5bdae
commit
89df605c3b
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue
Block a user