From 76994c33878a45aaab6b05dfa83b5dd2c861ee69 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Tue, 18 Mar 2014 12:10:49 +0100 Subject: [PATCH] QmlProfiler: Make sure y-offset in category labels is an integer This is only a workaround, for older versions of Qt. The real bug is that a non-integer y offset is interpreted inconsistently by QtQuick. Task-number: QTCREATORBUG-11732 Change-Id: Idcad0bf0cbef58b41c45e38aa29596717523ed0b Reviewed-by: Christian Stenger --- src/plugins/qmlprofiler/qml/CategoryLabel.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/qmlprofiler/qml/CategoryLabel.qml b/src/plugins/qmlprofiler/qml/CategoryLabel.qml index 46d14a73323..5314970b639 100644 --- a/src/plugins/qmlprofiler/qml/CategoryLabel.qml +++ b/src/plugins/qmlprofiler/qml/CategoryLabel.qml @@ -144,7 +144,7 @@ Item { Image { source: expanded ? "arrow_down.png" : "arrow_right.png" x: parent.width - 12 - y: root.singleRowHeight / 2 - height / 2 + y: Math.floor((root.singleRowHeight - height) / 2) smooth: false MouseArea { anchors.fill: parent