diff options
author | John Ehresman <jpe@wingware.com> | 2013-05-01 11:02:15 -0400 |
---|---|---|
committer | John Ehresman <jpe@wingware.com> | 2013-05-01 11:02:15 -0400 |
commit | ee593eb71baeea1912dfd1b16fc4a765d589d8cd (patch) | |
tree | d383709e15332c13e133ddb737bc9bb6e6c09679 | |
parent | ed155f29afee06db8f8730ecffc9680299023f63 (diff) | |
download | scintilla-mirror-ee593eb71baeea1912dfd1b16fc4a765d589d8cd.tar.gz |
Set mouse tracking to false when widget is hidden
-rw-r--r-- | qt/ScintillaEditBase/ScintillaEditBase.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qt/ScintillaEditBase/ScintillaEditBase.cpp b/qt/ScintillaEditBase/ScintillaEditBase.cpp index 3b85adb4d..c8e730a79 100644 --- a/qt/ScintillaEditBase/ScintillaEditBase.cpp +++ b/qt/ScintillaEditBase/ScintillaEditBase.cpp @@ -110,6 +110,9 @@ bool ScintillaEditBase::event(QEvent *event) // Circumvent the tab focus convention. keyPressEvent(static_cast<QKeyEvent *>(event)); result = event->isAccepted(); + } else if (event->type() == QEvent::Hide) { + setMouseTracking(false); + result = QAbstractScrollArea::event(event); } else { result = QAbstractScrollArea::event(event); } |