plasma components ContextMenu
Gregor Tätzner
gregor at freenet.de
Sat Aug 11 11:08:49 UTC 2012
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20120811/dc6f7d57/attachment.sig>
More information about the Plasma-devel
mailing list