-pedantic

svn path=/trunk/KDE/kdebase/runtime/; revision=1186462
This commit is contained in:
André Wöbbeking 2010-10-16 13:53:51 +00:00
parent ed1935d4ef
commit 8637029f79
4 changed files with 10 additions and 10 deletions

View File

@ -36,6 +36,6 @@ public:
void registerTypes(const char *uri); void registerTypes(const char *uri);
}; };
Q_EXPORT_PLUGIN2(corebindingsplugin, CoreBindingsPlugin); Q_EXPORT_PLUGIN2(corebindingsplugin, CoreBindingsPlugin)
#endif #endif

View File

@ -45,31 +45,31 @@ namespace Plasma
typedef QHash<QString, QVariant> Data; typedef QHash<QString, QVariant> Data;
DataSource(QObject* parent=0); DataSource(QObject* parent=0);
Q_PROPERTY(bool valid READ valid); Q_PROPERTY(bool valid READ valid)
bool valid() const {return m_dataEngine != 0;} bool valid() const {return m_dataEngine != 0;}
Q_PROPERTY(int interval READ interval WRITE setInterval NOTIFY intervalChanged); Q_PROPERTY(int interval READ interval WRITE setInterval NOTIFY intervalChanged)
int interval() const {return m_interval;} int interval() const {return m_interval;}
void setInterval(int i) {if(i==m_interval) return; m_interval=i; emit intervalChanged();} void setInterval(int i) {if(i==m_interval) return; m_interval=i; emit intervalChanged();}
Q_PROPERTY(QString engine READ engine WRITE setEngine NOTIFY engineChanged); Q_PROPERTY(QString engine READ engine WRITE setEngine NOTIFY engineChanged)
QString engine() const {return m_engine;} QString engine() const {return m_engine;}
void setEngine(const QString &e) {if(e==m_engine) return; m_engine=e; emit engineChanged();} void setEngine(const QString &e) {if(e==m_engine) return; m_engine=e; emit engineChanged();}
Q_PROPERTY(QString source READ source WRITE setSource NOTIFY sourceChanged); Q_PROPERTY(QString source READ source WRITE setSource NOTIFY sourceChanged)
QString source() const {return m_source;} QString source() const {return m_source;}
void setSource(const QString &s); void setSource(const QString &s);
Q_PROPERTY(QStringList keys READ keys NOTIFY keysChanged); Q_PROPERTY(QStringList keys READ keys NOTIFY keysChanged)
QStringList keys() const {return m_keys;} QStringList keys() const {return m_keys;}
Q_PROPERTY(QStringList allSources READ allSources NOTIFY sourcesChanged); Q_PROPERTY(QStringList allSources READ allSources NOTIFY sourcesChanged)
QStringList allSources() const {if (m_dataEngine) return m_dataEngine->sources(); else return QStringList();} QStringList allSources() const {if (m_dataEngine) return m_dataEngine->sources(); else return QStringList();}
Q_PROPERTY(QObject *data READ data NOTIFY dataChanged); Q_PROPERTY(QObject *data READ data NOTIFY dataChanged);
QObject *data() const {return m_data;} QObject *data() const {return m_data;}
Q_PROPERTY(Plasma::Service *service READ service CONSTANT); Q_PROPERTY(Plasma::Service *service READ service CONSTANT)
Plasma::Service *service(); Plasma::Service *service();
public Q_SLOTS: public Q_SLOTS:

View File

@ -33,6 +33,6 @@ public:
void registerTypes(const char *uri); void registerTypes(const char *uri);
}; };
Q_EXPORT_PLUGIN2(graphicslayoutsbindingsplugin, GraphicsLayoutsBindingsPlugin); Q_EXPORT_PLUGIN2(graphicslayoutsbindingsplugin, GraphicsLayoutsBindingsPlugin)
#endif #endif

View File

@ -33,6 +33,6 @@ public:
void registerTypes(const char *uri); void registerTypes(const char *uri);
}; };
Q_EXPORT_PLUGIN2(graphicswidgetsbindingsplugin, GraphicsWidgetsBindingsPlugin); Q_EXPORT_PLUGIN2(graphicswidgetsbindingsplugin, GraphicsWidgetsBindingsPlugin)
#endif #endif