Commit ae98ed28 authored by Timothy M. Shead's avatar Timothy M. Shead
Browse files

BUG: Line edit translator was incorrectly generating events while interacting with a spinbox

parent 04c21393
......@@ -9,8 +9,9 @@
#include "pqLineEditEventTranslator.h"
#include <QLineEdit>
#include <QEvent>
#include <QLineEdit>
#include <QSpinBox>
pqLineEditEventTranslator::pqLineEditEventTranslator() :
......@@ -22,7 +23,11 @@ bool pqLineEditEventTranslator::translateEvent(QObject* Object, QEvent* Event)
QLineEdit* const object = qobject_cast<QLineEdit*>(Object);
return false;
// If this line edit is part of a spinbox, don't translate events (the spinbox translator will receive the final value directly)
return false;
case QEvent::Enter:
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