diff options
author | Jan Arve Sæther <jan-arve.saether@qt.io> | 2019-08-09 12:49:04 +0200 |
---|---|---|
committer | Jan Arve Sæther <jan-arve.saether@qt.io> | 2019-08-29 13:38:14 +0200 |
commit | 98f29914e4e233358ef31068542fceeea92eda97 (patch) | |
tree | 2f96ba01b9e92d99ddbbf1967febfefd03653648 /src/quick/items/qquicktextcontrol_p_p.h | |
parent | 1dc3f4c24583e14dee3c5fa650a8ac239b953458 (diff) |
Fix QQuickTextEdit triple click detection
It should use the events own timestamps instead of a QTimer. It should
give a more accurate measurement of tripleclicks, in addition to that
qtestlib synthesized events (with timestamps) are respected.
Task-number: QTBUG-77389
Change-Id: I4f553ec17b53a00b55519bb8082f1373aa9d130d
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/quick/items/qquicktextcontrol_p_p.h')
-rw-r--r-- | src/quick/items/qquicktextcontrol_p_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/items/qquicktextcontrol_p_p.h b/src/quick/items/qquicktextcontrol_p_p.h index 0582e6d113..431bf1b6c4 100644 --- a/src/quick/items/qquicktextcontrol_p_p.h +++ b/src/quick/items/qquicktextcontrol_p_p.h @@ -141,7 +141,7 @@ public: QString hoveredLink; QBasicTimer cursorBlinkTimer; - QBasicTimer tripleClickTimer; + ulong timestampAtLastDoubleClick = 0; // will only be set at a double click #if QT_CONFIG(im) int preeditCursor; |