Commit 442269d1 authored by Christoffer Ackelman's avatar Christoffer Ackelman Committed by Esteban Blanc

QT: Fixed CoWowEntry fields hiding when losing focus.

parent 40ce27ee
......@@ -617,6 +617,7 @@ void CoWowEntryQt::keyPressEvent(QKeyEvent* event)
}
case Qt::Key_Escape:
if (m_hide_on_esc) {
emit editingFinished();
clearFocus();
hide();
}
......@@ -632,6 +633,10 @@ void CoWowEntryQt::keyPressEvent(QKeyEvent* event)
}
}
void CoWowEntryQt::focusOutEvent(QFocusEvent *event) {
event->ignore();
}
//
// Modal Dialog with text and tree buttons
//
......
......@@ -65,6 +65,7 @@ public:
protected:
void keyPressEvent(QKeyEvent* event);
void focusOutEvent(QFocusEvent *);
};
class CoWowModalDialogQt : public QDialog {
......
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