Add fix to Scintilla to ensure mouse tracking is restored on show

* See: https://sourceforge.net/p/scintilla/bugs/1948/
This commit is contained in:
baldurk
2017-06-09 17:03:24 +01:00
parent 0b1c3725b9
commit 2400f6e11f
@@ -132,6 +132,9 @@ bool ScintillaEditBase::event(QEvent *event)
// Circumvent the tab focus convention.
keyPressEvent(static_cast<QKeyEvent *>(event));
result = event->isAccepted();
} else if (event->type() == QEvent::Show) {
setMouseTracking(true);
result = QAbstractScrollArea::event(event);
} else if (event->type() == QEvent::Hide) {
setMouseTracking(false);
result = QAbstractScrollArea::event(event);