[Technical Question] - How to trigger the applets actions menu from a second window of a Panel? (e.g. Now Dock 0.5)

Michail Vourlakos mvourlakos at gmail.com
Tue Nov 29 20:59:10 UTC 2016


> ----
>
>    Plasma::Applet *applet = 0;
>     foreach (QObject *appletObject, m_appletInterfaces) {
>         if (AppletInterface *ai = qobject_cast<AppletInterface 
> *>(appletObject)) {
>             if (ai->isVisible() && ai->contains(ai->mapFromItem(this, 
> event->posF()))) {
>                 applet = ai->applet();
>                 break;
>             } else {
>                 ai = 0;
>             }
>         }
>     }
>
> ---
>
> for the m_appletsInterfaces I can use the plasmoid.applets variable to 
> get them but AppletInterface is not exposed in plasma library and I 
> need it in order to get its applet()   ///Plasma::Applet
>
>

no worries about that, I solved this by accessing the 
PlasmaQuick::AppletQuickItem's ...


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20161129/68370226/attachment.html>


More information about the Plasma-devel mailing list