aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/scenegraph_lancelot/data
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>2015-07-29 14:27:58 +0200
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>2015-08-03 07:18:52 +0000
commitd218d8c8538e47cf32a06b4bdd9f60bd16a8cf50 (patch)
treebcc26ed904cbb0851707c852127ae5f28872787f /tests/manual/scenegraph_lancelot/data
parentc318fceaccb1ee23a567f1bb032df45417217e09 (diff)
Fix selecting single character in middle of string
The fix for QTBUG-46829 revealed a bug in the code to handle selecting part of ligatures. The ranges were assumed to be [start, end], while they are in fact [start, end>. This would cause the engine to assume the previous node overlapped completely with the selected node and that the node had thus already been added to the graph. Due to the bug in QTBUG-46829, this accidentally worked before, but when that bug was fixed, this bug appeared. Change-Id: I517d260de9f58db4504dd4320b7113fbbe305a81 Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
Diffstat (limited to 'tests/manual/scenegraph_lancelot/data')
-rw-r--r--tests/manual/scenegraph_lancelot/data/text/textedit_cyrillic_selected.qml13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/manual/scenegraph_lancelot/data/text/textedit_cyrillic_selected.qml b/tests/manual/scenegraph_lancelot/data/text/textedit_cyrillic_selected.qml
new file mode 100644
index 0000000000..849e4b8597
--- /dev/null
+++ b/tests/manual/scenegraph_lancelot/data/text/textedit_cyrillic_selected.qml
@@ -0,0 +1,13 @@
+import QtQuick 2.0
+
+Item {
+ width: 320
+ height: 480
+ TextEdit {
+ id: textEdit
+ text: "и в у"
+ anchors.centerIn: parent
+ Component.onCompleted: textEdit.select(2, 3)
+ font.pixelSize: 14
+ }
+}