[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    KPassivePopup and Panel Applets
From:       Ismael Orenstein <ismore () ieg ! com ! br>
Date:       2002-12-08 15:45:50
[Download RAW message or body]

Hey there!

I'm trying to use a KPassivePopup in a kicker applet that I'm writing (it is 
not a system tray, it is a regular KPanelApplet), and it isn't working. When 
I call KPassivePopup::show it appears in the top-left border (coordinate 0,0)

Looking at the KPassivePopup code, I see that in the positionSelf() function 
it has 4 cases: No parent window (then it goes to 0,0), System tray Window, 
Skip taskbar window (what's this?) and Regular window.

In my case, it is running the code for regular window, which I guess is the 
kicker window... I don't know how kicker works, but does this mean that 
kicker ocupies the entire screen (hence the 0,0)?

Anyway, philosophycal questions aside, how I make it popup near the applet?
My best results where using:

      KPassivePopup *pop = new KPassivePopup( this->parentWidget() );
      pop->setAutoDelete( true );
      pop->setView( "Calculator", resultString );
      pop->show();
      QPoint pos = this->mapToParent( this->pos() );
      pop->move( pos );

Which made the Popup appear in the middle of the screen... (at least it is 
better than in the top left corner)

Thanks for your help,

ps: Please CC my personal email, as I'm not on kde-devel

-- 
Ismael Orenstein (UIN 1293061)
ismore@ieg.com.br
http://ksnes9x.sourceforge.net
http://ggz.sourceforge.net
http://linuxgames.com/xrally

 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic