[PATCH] BUG 189643 Taskbar should be animated while program is starting

Aaron J. Seigo aseigo at kde.org
Thu Jul 23 06:05:06 CEST 2009


On Tuesday 21 July 2009, 潘卫平(Peter Pan) wrote:
> Do you mean that I should use Plasma::BusyWidget ?

yes

> I made a patch using Plasma::BusyWidget,  It looks fine.

i wonder if it wouldn't make more sense to show it in place of the icon 
instead of right over the text?

also, you don't need to check a variable before deleting it, e.g. this:

+    if (m_busyWidget) {
+        delete m_busyWidget;
+    }

should just be this:

    delete m_busyWidget;
    m_busyWidget = 0;

that last check is important because the value of m_busyWidget is checked 
elsewhere in the code! right now it won't crash because we only use a task 
once for a startup item, but if that ever changes just deleting the object but 
not resetting the pointer would lead to a crash.

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Software
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20090722/a93fa4d4/attachment.sig 


More information about the Plasma-devel mailing list