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

List:       kde-panel-devel
Subject:    Re: [Panel-devel] minimization to taskbar
From:       "Robert Knight" <robertknight () gmail ! com>
Date:       2007-12-01 15:00:52
Message-ID: 13ed09c00712010700h7be9a7ffhe7e59ed6edfa7de4 () mail ! gmail ! com
[Download RAW message or body]

> Comments?

- AbstractTaskItem::paint() is perhaps not the most appropriate place
to publish updated task icon geometry, because this will lead to many
calls during animations when the task icon may only be moving by a
small amount on each call.  With caching enabled (in Qt 4.4) the paint() method might \
not be called when the item is just moving around.  Perhaps publish icon geometry in \
response to the ItemPositionHasChanged graphics item event instead, with publishing \
turned off during layout animations.

- Both TaskGroupItem and AbstractTaskItem implement
publishIconGeometry(), which means that when both the task and the
parent (a TaskGroupItem) are repainted, both will publish icon
geometry for the task.

Regards,
Robert.

On 30/11/2007, Jason Stubbs <jasonbstubbs@gmail.com> wrote:
> Hi all.
> 
> I've had a go at getting the task bar to report it's position to kwin.
> Rather than copying the code from systemtray, I've moved it into
> Plasma::Widget so that it can be reused by anything else that might
> need to know this sort of stuff.
> 
> Attached are three patches:
> * Add associatedViews(), mapToView() and mapFromView() to Widget
> * Modify SystemTray to use the new methods
> * Add reporting of position to kwin in tasks.cpp
> 
> Comments?
> 
> --
> Jason Stubbs
> 
_______________________________________________
Panel-devel mailing list
Panel-devel@kde.org
https://mail.kde.org/mailman/listinfo/panel-devel


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

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