Commit 76994c33 authored by Ulf Hermann's avatar Ulf Hermann
Browse files

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: default avatarChristian Stenger <christian.stenger@digia.com>
parent 1605b788
......@@ -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
......
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