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

List:       kde-core-devel
Subject:    Re: KDElibs: KSystemTray: On window close dialog
From:       Sébastien_Laoût "\[temporar\]" <les83plus () free ! fr>
Date:       2004-10-05 22:36:20
Message-ID: 1097015780.2907.9.camel () localhost ! localdomain
[Download RAW message or body]

Le mar 05/10/2004 à 20:55, Jason Keirstead a écrit :
> You might want to look at the code Kopete uses for it's message bubble. I know 
> mETz went to HUGE effort to make that work at all possible locations of the 
> tray, including multiple desktop configurations.
> 
> The relevant code is in kdenetwork/kopete/kopete/kopeteballoon.cpp in 
> updateMask.
> 
> Basically Kopete makes the balloon and calls 
> m_balloon->setAnchor( systemTray->mapToGlobal(systemTray->pos())), with 
> systemTray being the KSystemTray pointer, and the setAnchor code inside 
> KopeteBalloon doing the magic.

And that's what the patch do too:

    // Compute size and position of the pixmap to be grabbed:
    QPoint g = mapToGlobal(pos());



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

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