aboutsummaryrefslogtreecommitdiffhomepage
path: root/qt/ScintillaEditBase/ScintillaEditBase.cpp
diff options
context:
space:
mode:
authorBaldur Karlsson <unknown>2017-06-10 08:37:19 +1000
committerBaldur Karlsson <unknown>2017-06-10 08:37:19 +1000
commitdf14c8ee0de243decbe993bdb96d70a284dd7428 (patch)
treecbf67d6cbc48a9fb487c5af7bae07cce63b78aa3 /qt/ScintillaEditBase/ScintillaEditBase.cpp
parent6fd2378c231327ab7e063935f408894bebde729d (diff)
downloadscintilla-mirror-df14c8ee0de243decbe993bdb96d70a284dd7428.tar.gz
Backport: Bug [#1947]. Reenable mouse tracking when the window is reshown.
Backport of changeset 6300:d0038cc1af23.
Diffstat (limited to 'qt/ScintillaEditBase/ScintillaEditBase.cpp')
-rw-r--r--qt/ScintillaEditBase/ScintillaEditBase.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/qt/ScintillaEditBase/ScintillaEditBase.cpp b/qt/ScintillaEditBase/ScintillaEditBase.cpp
index 4b7d29440..616fd2323 100644
--- a/qt/ScintillaEditBase/ScintillaEditBase.cpp
+++ b/qt/ScintillaEditBase/ScintillaEditBase.cpp
@@ -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);