Commit 5e85fc17 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner: Use native text rendering



Change-Id: I97f73ff82e4aac6af7f6b8d04364339ba484910a
Reviewed-by: default avatarMarco Bubke <marco.bubke@digia.com>
parent 374bedfb
......@@ -145,6 +145,7 @@ Column {
color: style.sectionTitleTextColor
elide: Text.ElideMiddle
font.bold: true
renderType: Text.NativeRendering
}
MouseArea {
id: mouseArea
......
......@@ -114,6 +114,7 @@ Item {
horizontalAlignment: "AlignHCenter"
text: itemName // to be set by model
color: style.itemNameTextColor
renderType: Text.NativeRendering
}
MouseArea {
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment