Timeline: Don't anchor delegate items

Apparently the parent is not always defined and we get warnings about
that.

Change-Id: I574d68c2668fef53af9422049143a0decf05286f
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
This commit is contained in:
Ulf Hermann
2015-01-13 13:49:27 +01:00
parent 582ad0fc3f
commit ec7062d08f

View File

@@ -78,10 +78,9 @@ Flickable {
delegate: Rectangle { delegate: Rectangle {
color: categories.color color: categories.color
anchors.left: parent.left
anchors.right: parent.right
property int visualIndex: DelegateModel.itemsIndex property int visualIndex: DelegateModel.itemsIndex
height: label.visible ? label.height : 0 height: label.visible ? label.height : 0
width: categories.width
CategoryLabel { CategoryLabel {
id: label id: label