Fixed shift select functionality in grid view.

This commit is contained in:
Luis Ángel San Martín 2016-04-16 13:50:57 +02:00
parent d3cb607ac6
commit ecb2920685

View File

@ -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