dbusmenuqt and left-click

Andriy Rysin arysin at gmail.com
Wed Aug 4 23:56:25 BST 2010


2010/8/4 Aaron J. Seigo <aseigo at kde.org>

> On August 4, 2010, Andriy Rysin wrote:
> > In keyboard layout indicator module I have a reaction to left-click via
> > activateRequested(), which is to toggle the layout to the next one (as
> > opposed to right-click which brings menu). Though currently (with latest
> > dbusmenuqt) no matter whether I click left or right button it's always
> > context menu that appears.
>
> did you associate a widget (e.g. via setAssociatedWidget)? if so, then some
> implementations will decide to use the left click themselves instead of use
>  it as a trigger for activateRequested.
>
There's no widget in keyboard layout indicator that uses KStatusNotifierItem
(I guess the whole idea was to abstract the icon implementation), the
"embedded" LayoutWidget which instead uses "normal" widget (and which is
used in lock dialog) actually does not have such problem :)

Andriy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20100804/24a3d539/attachment.htm>


More information about the kde-core-devel mailing list