Detecting when PopupApplet is iconified

Rob Hasselbaum rob at hasselbaum.net
Thu Mar 18 15:35:47 CET 2010


On Thu, Mar 18, 2010 at 9:54 AM, Sebastian Kügler <sebas at kde.org> wrote:

> On Thursday 18 March 2010 14:32:07 Rob Hasselbaum wrote:
> > Hi all. How can I tell if a PopupApplet is iconified and therefore not
> > displaying its content? I was hoping I could override popupEvent and/or
> > check isPopupShowing, but that approach doesn't work if the applet was
> > added to the desktop instead of a panel. I'm guessing I should look at
> the
> > applet's containment, but what property or properties should I check?
>
> This looks like what you're looking for:
>
> bool Plasma::PopupApplet::isPopupShowing()    const [virtual]
>

Unfortunately, no, because that returns false when the applet is placed on
the desktop. So it doesn't help me distinguish between "visible because it's
on the desktop" versus "visible because it's popped up". And isVisible()
returns true even when it's an icon, so that doesn't help either.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/plasma-devel/attachments/20100318/178ce087/attachment.htm 


More information about the Plasma-devel mailing list