aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil <devnull@localhost>2014-02-10 14:39:29 +1100
committerNeil <devnull@localhost>2014-02-10 14:39:29 +1100
commit8cc2588dfc02fc3d9ddd1f2c9da5e3a381f56499 (patch)
treeb9eee7d9ae9ea01183e77b924909c016805fed55
parentec9b0acbd88659699aac437d5fa84d04552111bd (diff)
downloadscintilla-mirror-8cc2588dfc02fc3d9ddd1f2c9da5e3a381f56499.tar.gz
Bug [#1575]. On Qt 5.x double click treated as triple click.
From Mike M.
-rw-r--r--doc/ScintillaHistory.html5
-rw-r--r--qt/ScintillaEditBase/ScintillaEditBase.cpp6
2 files changed, 11 insertions, 0 deletions
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 @@
<td>Ebben</td>
</tr><tr>
<td>Robert Gieseke</td>
+ <td>Mike M</td>
</tr>
</table>
<p>
@@ -471,6 +472,10 @@
Fix crashes and other bugs in Fortran folder by removing folding of do-label constructs.
</li>
<li>
+ Fix Qt bug where double click treated as triple click.
+ <a href="http://sourceforge.net/p/scintilla/bugs/1575/">Bug #1575</a>.
+ </li>
+ <li>
Fix bug on Windows when resizing autocompletion list with only short strings caused the list to move.
</li>
</ul>
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)
{