An update will be applied December 9th, between 12PM and 1:00PM EST (UTC -5:00). The site may be slow during that time.

Commit 15d697a1 authored by Clinton Stimpson's avatar Clinton Stimpson
Browse files

BUG: Relying on enter/leave events may miss some keyboard events.

      Rely on focus in/out instead.
parent d8c024e9
......@@ -55,11 +55,11 @@ bool pqDoubleSpinBoxEventTranslator::translateEvent(QObject* Object, QEvent* Eve
switch(Event->type())
{
case QEvent::Enter:
case QEvent::FocusIn:
this->CurrentObject = Object;
connect(object, SIGNAL(valueChanged(double)), this, SLOT(onValueChanged(double)));
break;
case QEvent::Leave:
case QEvent::FocusOut:
disconnect(Object, 0, this, 0);
this->CurrentObject = 0;
break;
......
......@@ -56,11 +56,11 @@ bool pqSpinBoxEventTranslator::translateEvent(QObject* Object, QEvent* Event, bo
switch(Event->type())
{
case QEvent::Enter:
case QEvent::FocusIn:
this->CurrentObject = Object;
connect(object, SIGNAL(valueChanged(int)), this, SLOT(onValueChanged(int)));
break;
case QEvent::Leave:
case QEvent::FocusOut:
disconnect(Object, 0, this, 0);
this->CurrentObject = 0;
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment