forked from qt-creator/qt-creator
QmlProfiler: Use anchors to determine the size of the timebar background
For some reason, when the timeline width is 0, the background width can get negative, if using bindings; it works fine when using anchors. Change-Id: I5eb76f83b9c41c1a71a135082770079cedc7f16c Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
@@ -303,8 +303,7 @@ Rectangle {
|
|||||||
Flickable {
|
Flickable {
|
||||||
id: vertflick
|
id: vertflick
|
||||||
flickableDirection: Flickable.VerticalFlick
|
flickableDirection: Flickable.VerticalFlick
|
||||||
width: parent.width
|
anchors.fill: parent
|
||||||
height: root.height
|
|
||||||
clip: true
|
clip: true
|
||||||
contentHeight: labels.height
|
contentHeight: labels.height
|
||||||
boundsBehavior: Flickable.StopAtBounds
|
boundsBehavior: Flickable.StopAtBounds
|
||||||
@@ -318,8 +317,8 @@ Rectangle {
|
|||||||
id: backgroundMarks
|
id: backgroundMarks
|
||||||
y: vertflick.contentY
|
y: vertflick.contentY
|
||||||
height: vertflick.height
|
height: vertflick.height
|
||||||
width: flick.width
|
anchors.right: parent.right
|
||||||
anchors.left: flick.left
|
anchors.left: labels.right
|
||||||
}
|
}
|
||||||
|
|
||||||
Flickable {
|
Flickable {
|
||||||
|
|||||||
Reference in New Issue
Block a user