KDElibs: KSystemTray: On window close dialog
Sébastien Laoût [temporar]
les83plus at free.fr
Tue Oct 5 23:36:20 BST 2004
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());
More information about the kde-core-devel
mailing list