diff --git a/YACReaderLibrary/qml/GridComicsView.qml b/YACReaderLibrary/qml/GridComicsView.qml index 3a5659cf..b745bfb4 100644 --- a/YACReaderLibrary/qml/GridComicsView.qml +++ b/YACReaderLibrary/qml/GridComicsView.qml @@ -39,14 +39,6 @@ Rectangle { height: parent.height anchors.margins: 0 - function selectAll(from,to) - { - for(var i = from;i<=to;i++) - { - comicsSelectionHelper.selectIndex(i); - } - } - Component { id: appDelegate Rectangle @@ -160,6 +152,14 @@ Rectangle { comicsSelectionHelper.selectedItem(index); } + function selectAll(from,to) + { + for(var i = from;i<=to;i++) + { + comicsSelectionHelper.selectIndex(i); + } + } + onPressed: { var ci = grid.currentIndex; //save current index