On Friday 10 August 2012 19:20:46 Marco Martin wrote:
> On Friday 10 August 2012, Gregor Tätzner wrote:
> > I need a nice context menu for kickoff qml. Is someone working on this?
> > There is a ContextMenu.qml file in plasmacomponents, but it's
> > kinda...empty.
>
> because it's implemented in c++.
>
> it will create a native qmenu, so should be fine for the use case (items
> context menu?)
>
> ContextMenu {
>       visualParent: contentMenuButton
>       MenuItem {
>            text: "bah"
>            icon: QIcon("iconname")
>            onClicked: foo()
>       }
> }

Great, working fine so far. But how can I trigger this contextMenu in a
plasmoid by a right click?

onClicked: {
        if (mouse.button == Qt.RightButton)
                ...

doesn't work because the plasmoid settings menu catches the right button. Can
I overwrite that?

Thanks,
Greg

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel

Reply via email to