Commit da3d3c02 authored by Devin Lin's avatar Devin Lin 🎨
Browse files

Allow holding top panel delegate to trigger label action

parent bb3225d4
......@@ -68,6 +68,19 @@ ColumnLayout {
root.closeRequested();
}
}
onPressAndHold: {
if (model.settingsCommand) {
NanoShell.StartupFeedback.open(
model.icon,
model.text,
icon.Kirigami.ScenePosition.x + icon.width/2,
icon.Kirigami.ScenePosition.y + icon.height/2,
Math.min(icon.width, icon.height))
closeRequested();
} else if (model.toggleFunction) {
root[model.toggleFunction]();
}
}
}
}
}
......
Markdown is supported
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