aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmldesigner/components/stateseditor/stateslist.qml
diff options
context:
space:
mode:
authorThomas Hartmann <Thomas.Hartmann@digia.com>2013-09-18 12:40:51 +0200
committerThomas Hartmann <Thomas.Hartmann@digia.com>2013-09-18 13:44:27 +0200
commit5e85fc175e9818bef92b4b16edbc1668b934bf59 (patch)
tree9da480c6e62c1e8232a0aa3890c8176b835af5df /src/plugins/qmldesigner/components/stateseditor/stateslist.qml
parent374bedfb00d623b0401e1ffdba9b07cba11d21f5 (diff)
QmlDesigner: Use native text rendering
Change-Id: I97f73ff82e4aac6af7f6b8d04364339ba484910a Reviewed-by: Marco Bubke <marco.bubke@digia.com>
Diffstat (limited to 'src/plugins/qmldesigner/components/stateseditor/stateslist.qml')
-rw-r--r--src/plugins/qmldesigner/components/stateseditor/stateslist.qml4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/qmldesigner/components/stateseditor/stateslist.qml b/src/plugins/qmldesigner/components/stateseditor/stateslist.qml
index 821fa3b9d0..0fedbefd0c 100644
--- a/src/plugins/qmldesigner/components/stateseditor/stateslist.qml
+++ b/src/plugins/qmldesigner/components/stateseditor/stateslist.qml
@@ -209,6 +209,7 @@ Rectangle {
width:parent.width
elide:Qt.ElideMiddle
horizontalAlignment:Qt.AlignHCenter
+ renderType: Text.NativeRendering
}
Rectangle {
id: textFrame
@@ -260,10 +261,12 @@ Rectangle {
text:stateNameInput.text
visible:false
id:textMetric
+ renderType: Text.NativeRendering
}
Text {
visible:false
id:cursorMetric
+ renderType: Text.NativeRendering
}
@@ -279,6 +282,7 @@ Rectangle {
text:stateName
width:Math.max(textMetric.width+4, parent.width)
onCursorPositionChanged: updateScroll();
+ renderType: Text.NativeRendering
function updateScroll() {
cursorMetric.text=text.substring(0,cursorPosition);
var cM = cursorPosition>0?cursorMetric.width:0;