From cbef67a19434cd5d4d71e217a2b6dcbf8df70786 Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 10 Feb 2014 14:39:29 +1100 Subject: Bug [#1575]. On Qt 5.x double click treated as triple click. From Mike M. --- doc/ScintillaHistory.html | 5 +++++ qt/ScintillaEditBase/ScintillaEditBase.cpp | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index 6fb9b4c8f..05b02148d 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -442,6 +442,7 @@ Ebben Robert Gieseke + Mike M

@@ -471,6 +472,10 @@ Fix crashes and other bugs in Fortran folder by removing folding of do-label constructs.

  • + Fix Qt bug where double click treated as triple click. + Bug #1575. +
  • +
  • Fix bug on Windows when resizing autocompletion list with only short strings caused the list to move.
  • diff --git a/qt/ScintillaEditBase/ScintillaEditBase.cpp b/qt/ScintillaEditBase/ScintillaEditBase.cpp index 2e7afa149..4677e3536 100644 --- a/qt/ScintillaEditBase/ScintillaEditBase.cpp +++ b/qt/ScintillaEditBase/ScintillaEditBase.cpp @@ -310,11 +310,17 @@ void ScintillaEditBase::mouseReleaseEvent(QMouseEvent *event) emit buttonReleased(event); } +#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) void ScintillaEditBase::mouseDoubleClickEvent(QMouseEvent *event) { // Scintilla does its own double-click detection. mousePressEvent(event); } +#else +void ScintillaEditBase::mouseDoubleClickEvent(QMouseEvent *) +{ +} +#endif void ScintillaEditBase::mouseMoveEvent(QMouseEvent *event) { -- cgit v1.2.3