fixed selection issues in grid view

This commit is contained in:
Luis Ángel San Martín
2015-01-01 11:45:41 +01:00
parent 280c6b96e9
commit 1a04358a83
2 changed files with 16 additions and 1 deletions

View File

@ -12,7 +12,7 @@ Rectangle {
function selectAll(from,to)
{
for(var i = from+1;i<to;i++)
for(var i = from;i<to;i++)
{
comicsSelectionHelper.selectIndex(i);
}
@ -120,6 +120,14 @@ Rectangle {
}
onReleased: {
if(mouse.button != Qt.RightButton && !(mouse.modifiers & Qt.ControlModifier || mouse.modifiers & Qt.ShiftModifier))
{
comicsSelectionHelper.clear();
grid.currentIndex = index;
}
}
}
}