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

List:       kde-commits
Subject:    KDE/kdeutils/superkaramba/skapplet
From:       Sebastian Sauer <mail () dipe ! org>
Date:       2007-07-31 23:45:03
Message-ID: 1185925503.870209.23010.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 694883 by sebsauer:

be also able to connect with the connector :)

 M  +16 -0     skengineadaptor.h  


--- trunk/KDE/kdeutils/superkaramba/skapplet/skengineadaptor.h #694882:694883
@@ -85,10 +85,26 @@
         */
         void setFormat(const QString& format) { m_format = format; }
 
+    Q_SIGNALS:
+
+        /**
+         * Emitted when a data source got updated.
+         *
+         * This signal will only be emitted if no or an emoty source was defined.
+         *
+         * \param source The name of the data source.
+         * \param data The map of the data that got changed.
+         **/
+        void sourceUpdated(const QString& source, QVariantMap data);
+
     private Q_SLOTS:
 
         /// Plasma calls this if data changed.
         void updated(const QString& source, Plasma::DataEngine::Data data) {
+            if( m_source.isEmpty() ) {
+                emit sourceUpdated(source, dataToMap(data));
+                return;
+            }
             if( source != m_source )
                 return;
             QString v = m_format;
[prev in list] [next in list] [prev in thread] [next in thread] 

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