on xenial help sign in
fix clicked
commitc461eb3d2299170890df839b06fd8b5e1cc26ae7 authorAlbert Astals <albert.astals@canonical.com> dateTue 29 Apr 2014, 17:22 (12 years ago) parent434f5ea
1 file changed+2−2
qml/Dash/CardFilterGrid.qml+2−2
qml/Dash/CardFilterGrid.qml+2−2
@@ -49,10 +49,10 @@ DashRenderer {
4949 width: filterGrid.cellWidth
5050 height: filterGrid.cellHeight
5151 Loader {
52+ id: loader
5253 sourceComponent: cardTool.cardComponent
5354 anchors.horizontalCenter: parent.horizontalCenter
5455 onLoaded: {
55−// console.log("CardFilterGrid onLoaded", cardTool.artShapeSize, cardTool.cardWidth);
5656 item.objectName = "delegate" + index;
5757 item.width = Qt.binding(function() { return cardTool.cardWidth; });
5858 item.height = Qt.binding(function() { return cardTool.cardHeight; });
@@ -63,7 +63,7 @@ DashRenderer {
6363 item.headerAlignment = Qt.binding(function() { return cardTool.headerAlignment; });
6464 }
6565 Connections {
66− target: item
66+ target: loader.item
6767 onClicked: genericFilterGrid.clicked(index, item.y)
6868 onPressAndHold: genericFilterGrid.pressAndHold(index, item.y)
6969 }