removing unnecessary javascript now that we have better selections
This commit is contained in:
parent
39ceca74cd
commit
d02a13ee73
1 changed files with 1 additions and 19 deletions
|
@ -245,7 +245,7 @@ Item {
|
|||
}
|
||||
else if ((mouse.button === Qt.LeftButton) &&
|
||||
(mouse.modifiers === Qt.ShiftModifier)) {
|
||||
selectItems(index);
|
||||
ServiceItemModel.selectItems(index);
|
||||
} else {
|
||||
serviceItemList.currentIndex = index;
|
||||
ServiceItemModel.select(index);
|
||||
|
@ -659,22 +659,4 @@ Item {
|
|||
}
|
||||
serviceItemList.forceLayout()
|
||||
}
|
||||
|
||||
function selectItems(index) {
|
||||
if (index === serviceItemList.currentIndex)
|
||||
return;
|
||||
var arr = [];
|
||||
if (index > serviceItemList.currentIndex) {
|
||||
for (let i = serviceItemList.currentIndex; i < index + 1; i++) {
|
||||
arr.push(i);
|
||||
console.log("Select all these here items..." + arr);
|
||||
}
|
||||
} else {
|
||||
for (let i = serviceItemList.currentIndex; i > index - 1; i--) {
|
||||
arr.push(i);
|
||||
console.log("Select all these here items..." + arr);
|
||||
}
|
||||
}
|
||||
ServiceItemModel.selectItems(index);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue