mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
Emit a signal from FlowView when the index changes.
This commit is contained in:
parent
3d5eb94ffd
commit
af772f8aee
@ -18,6 +18,8 @@ Rectangle {
|
|||||||
|
|
||||||
property real itemsSpacing: 17
|
property real itemsSpacing: 17
|
||||||
|
|
||||||
|
signal currentCoverChanged(int index)
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: background
|
id: background
|
||||||
color: "#2A2A2A"
|
color: "#2A2A2A"
|
||||||
@ -72,6 +74,7 @@ Rectangle {
|
|||||||
|
|
||||||
ListView {
|
ListView {
|
||||||
id: list
|
id: list
|
||||||
|
objectName: "list"
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
property int previousIndex;
|
property int previousIndex;
|
||||||
@ -92,6 +95,10 @@ Rectangle {
|
|||||||
|
|
||||||
highlightMoveDuration: 250
|
highlightMoveDuration: 250
|
||||||
|
|
||||||
|
onCurrentIndexChanged: {
|
||||||
|
currentCoverChanged(currentIndex);
|
||||||
|
}
|
||||||
|
|
||||||
delegate: Component {
|
delegate: Component {
|
||||||
|
|
||||||
//cover
|
//cover
|
||||||
|
Loading…
x
Reference in New Issue
Block a user