|
|
|
@ -1456,9 +1456,13 @@ MouseArea{
|
|
|
|
|
Connections {
|
|
|
|
|
target: shortcuts
|
|
|
|
|
onSglActivateEntryAtIndex: {
|
|
|
|
|
var visibleIndex = taskItem.indexer.visibleIndex(taskItem.itemIndex);
|
|
|
|
|
if (!taskItem.shortcuts.isEnabled) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var shortcutIndex = taskItem.shortcuts.shortcutIndex(taskItem.itemIndex);
|
|
|
|
|
|
|
|
|
|
if (visibleIndex === entryIndex) {
|
|
|
|
|
if (shortcutIndex === entryIndex) {
|
|
|
|
|
if (taskItem.isGroupParent) {
|
|
|
|
|
taskItem.activateNextTask();
|
|
|
|
|
} else {
|
|
|
|
@ -1468,9 +1472,13 @@ MouseArea{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
onSglNewInstanceForEntryAtIndex: {
|
|
|
|
|
var visibleIndex = taskItem.indexer.visibleIndex(taskItem.itemIndex);
|
|
|
|
|
if (!taskItem.shortcuts.isEnabled) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var shortcutIndex = taskItem.shortcuts.shortcutIndex(taskItem.itemIndex);
|
|
|
|
|
|
|
|
|
|
if (visibleIndex === entryIndex) {
|
|
|
|
|
if (shortcutIndex === entryIndex) {
|
|
|
|
|
tasksModel.requestNewInstance(taskItem.modelIndex());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|