[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: KPassivePopup and Panel Applets
From: Carsten Pfeiffer <carpdjih () mailbox ! tu-berlin ! de>
Date: 2002-12-13 7:50:55
[Download RAW message or body]
-----BEGIN PGP SIGNED MESSAGE-----
On Sunday 08 December 2002 16:45, Ismael Orenstein wrote:
> 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.
You can have a window that will not have an entry in the taskbar. kicker is
actually a dock-window. I'm not sure if all dockwindows should be treated as
system-tray windows. But I added a patch so that wrong taskbar-item positions
like 0,0 will lead to the same behavior as system-tray windows.
> 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)?
No, the 0,0 comes from the fact that there simply is no taskbar entry for
kicker.
> 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 );
KPassivePopup::message( i18n("Calculator"), resultString, this );
should do it now.
Cheers
Carsten Pfeiffer
-----BEGIN PGP SIGNATURE-----
iQEVAwUBPfmRX6WgYMJuwmZtAQH7cggAuPhTkb81iUoEKJhYPlno8coM/+pltXyR
zajZetmbCeiN+pkrUnNlZuqgd4E9EgPBAU6yLwiP1z3pQ9QRFPOHNC3IiJoRbkNX
nhOv7qDjw6+A67XED63/EgoD6IqxM7hG+kssk882SxjWVU50HLQpFwPrSEEbfLzO
CQPIQAKT2frs2bB/ci+hgQWDkjxXfMwi0OZr2YEVW1JDa+MkN+0TzabsxDXUK2KQ
kAikUaB7qc3hnjaA87kQ8oLh2BDKiTVnxU9EBGzaeznDak57wopj9K2voq5AOjFp
Mo4v0t4WGxEeZQQwCaP7lS6l+4JBQAMsLGUtMnwMToEgS5SO8axOMg==
=CCE1
-----END PGP SIGNATURE-----
>> 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