From kde-commits Tue Jul 31 23:45:03 2007 From: Sebastian Sauer Date: Tue, 31 Jul 2007 23:45:03 +0000 To: kde-commits Subject: KDE/kdeutils/superkaramba/skapplet Message-Id: <1185925503.870209.23010.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=118592551207511 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;