From af772f8aee8fab66e944ada9699511d97426ede1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Sun, 10 Apr 2016 20:07:27 +0200 Subject: [PATCH] Emit a signal from FlowView when the index changes. --- YACReaderLibrary/qml/FlowView.qml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/YACReaderLibrary/qml/FlowView.qml b/YACReaderLibrary/qml/FlowView.qml index 972865f4..073cf0e8 100644 --- a/YACReaderLibrary/qml/FlowView.qml +++ b/YACReaderLibrary/qml/FlowView.qml @@ -18,6 +18,8 @@ Rectangle { property real itemsSpacing: 17 + signal currentCoverChanged(int index) + Rectangle { id: background color: "#2A2A2A" @@ -72,6 +74,7 @@ Rectangle { ListView { id: list + objectName: "list" anchors.fill: parent property int previousIndex; @@ -92,6 +95,10 @@ Rectangle { highlightMoveDuration: 250 + onCurrentIndexChanged: { + currentCoverChanged(currentIndex); + } + delegate: Component { //cover