Verified Commit 8c7a2151 authored by ivan tkachenko's avatar ivan tkachenko
Browse files

[applets/taskmanager] Port to switch-case instead of ===

parent bf45a1d5
Pipeline #190401 passed with stage
in 5 minutes and 38 seconds
......@@ -19,15 +19,19 @@ MouseArea {
enabled: winId !== 0
onClicked: {
if (mouse.button == Qt.LeftButton) {
switch (mouse.button) {
case Qt.LeftButton:
tasksModel.requestActivate(modelIndex);
rootTask.toolTipAreaItem.hideImmediately();
backend.cancelHighlightWindows();
} else if (mouse.button == Qt.MiddleButton) {
break;
case Qt.MiddleButton:
backend.cancelHighlightWindows();
tasksModel.requestClose(modelIndex);
} else /* right button */ {
break;
case Qt.RightButton:
tasks.createContextMenu(rootTask, modelIndex).show();
break;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment