mirror of
https://github.com/YACReader/yacreader
synced 2025-06-03 17:18:23 -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
|
||||
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user