on xenial help sign in
Don't center items in CardVerticalJournal, kind of beats the purpose... Also don't bind unnecessarily.
525995eMichał Sawicz
qml/Dash/CardVerticalJournal.qml−3
@@ -67,11 +67,8 @@ DashRenderer {
67 id: loader
67 id: loader
68 sourceComponent: cardTool.cardComponent
68 sourceComponent: cardTool.cardComponent
69 width: cardTool.cardWidth
69 width: cardTool.cardWidth
70− anchors.horizontalCenter: parent.horizontalCenter
71 onLoaded: {
70 onLoaded: {
72 item.objectName = "delegate" + index;
71 item.objectName = "delegate" + index;
73− item.width = Qt.binding(function() { return cardTool.cardWidth; });
74− item.height = Qt.binding(function() { return cardTool.cardHeight; });
75 item.fixedArtShapeSize = Qt.binding(function() { return cardTool.artShapeSize; });
72 item.fixedArtShapeSize = Qt.binding(function() { return cardTool.artShapeSize; });
76 item.fixedHeaderHeight = Qt.binding(function() { return cardTool.headerHeight; });
73 item.fixedHeaderHeight = Qt.binding(function() { return cardTool.headerHeight; });
77 item.cardData = Qt.binding(function() { return model; });
74 item.cardData = Qt.binding(function() { return model; });