mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
Fixed shift select functionality in grid view.
This commit is contained in:
parent
d3cb607ac6
commit
ecb2920685
@ -39,14 +39,6 @@ Rectangle {
|
|||||||
height: parent.height
|
height: parent.height
|
||||||
anchors.margins: 0
|
anchors.margins: 0
|
||||||
|
|
||||||
function selectAll(from,to)
|
|
||||||
{
|
|
||||||
for(var i = from;i<=to;i++)
|
|
||||||
{
|
|
||||||
comicsSelectionHelper.selectIndex(i);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Component {
|
Component {
|
||||||
id: appDelegate
|
id: appDelegate
|
||||||
Rectangle
|
Rectangle
|
||||||
@ -160,6 +152,14 @@ Rectangle {
|
|||||||
comicsSelectionHelper.selectedItem(index);
|
comicsSelectionHelper.selectedItem(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function selectAll(from,to)
|
||||||
|
{
|
||||||
|
for(var i = from;i<=to;i++)
|
||||||
|
{
|
||||||
|
comicsSelectionHelper.selectIndex(i);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
onPressed: {
|
onPressed: {
|
||||||
|
|
||||||
var ci = grid.currentIndex; //save current index
|
var ci = grid.currentIndex; //save current index
|
||||||
|
Loading…
x
Reference in New Issue
Block a user