internal: clean up tray item
This commit is contained in:
parent
c5acf76981
commit
c34589a23d
1 changed files with 2 additions and 10 deletions
|
|
@ -19,16 +19,8 @@ MouseArea {
|
|||
onClicked: event => {
|
||||
if (event.button === Qt.LeftButton)
|
||||
modelData.activate();
|
||||
else if (modelData.hasMenu)
|
||||
menu.open();
|
||||
}
|
||||
|
||||
// TODO custom menu
|
||||
QsMenuAnchor {
|
||||
id: menu
|
||||
|
||||
menu: root.modelData.menu
|
||||
anchor.window: this.QsWindow.window
|
||||
else
|
||||
modelData.secondaryActivate();
|
||||
}
|
||||
|
||||
IconImage {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue