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

List:       kde-commits
Subject:    KDE/kdelibs/plasma
From:       Aaron J. Seigo <aseigo () kde ! org>
Date:       2008-12-01 1:05:00
Message-ID: 1228093500.037858.8112.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 891035 by aseigo:

allow applets to know when they are destroyed


 M  +5 -0      applet.cpp  
 M  +6 -0      applet.h  


--- trunk/KDE/kdelibs/plasma/applet.cpp #891034:891035
@@ -371,6 +371,11 @@
     }
 }
 
+bool Applet::destroyed() const
+{
+    return d->transient;
+}
+
 void AppletPrivate::appletAnimationComplete(QGraphicsItem *item, Plasma::Animator::Animation anim)
 {
     if (anim != Animator::DisappearAnimation || item != q) {
--- trunk/KDE/kdelibs/plasma/applet.h #891034:891035
@@ -550,6 +550,12 @@
                         const QString &serviceId = QString(),
                         uint appletId = 0);
 
+        /**
+         * @return true if destroy() was called; useful for Applets which should avoid
+         * certain tasks if they are about to be deleted permanently
+         */
+        bool destroyed() const;
+
     Q_SIGNALS:
         /**
          * This signal indicates that an application launch, window
[prev in list] [next in list] [prev in thread] [next in thread] 

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