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