diff --git a/dataengine.h b/dataengine.h index fa2d56ea2..4d00a0938 100644 --- a/dataengine.h +++ b/dataengine.h @@ -50,6 +50,9 @@ class DataContainer; class PLASMA_EXPORT DataEngine : public QObject { Q_OBJECT + Q_PROPERTY( QStringList sources READ sources ) + Q_PROPERTY( bool valid READ isValid ) + Q_PROPERTY( QString icon READ icon WRITE setIcon ) public: typedef QHash Dict; diff --git a/phase.h b/phase.h index 2aa78feff..84b75e89c 100644 --- a/phase.h +++ b/phase.h @@ -37,6 +37,10 @@ namespace Plasma class PLASMA_EXPORT Phase : public QObject { Q_OBJECT + Q_ENUMS( Animation ) + Q_ENUMS( RenderOp ) + Q_ENUMS( CurveShape ) + Q_ENUMS( Movement ) public: enum Animation @@ -82,9 +86,9 @@ public: explicit Phase(QObject * parent = 0); ~Phase(); - void animateItem(QGraphicsItem* item, Animation anim); - void moveItem(QGraphicsItem* item, Movement movement, const QPoint &destination); - void render(QGraphicsItem* item, QImage& image, RenderOp op); + Q_INVOKABLE void animateItem(QGraphicsItem* item, Animation anim); + Q_INVOKABLE void moveItem(QGraphicsItem* item, Movement movement, const QPoint &destination); + Q_INVOKABLE void render(QGraphicsItem* item, QImage& image, RenderOp op); AnimId animateElement(QGraphicsItem *obj, ElementAnimation); void stopElementAnimation(AnimId id); diff --git a/theme.h b/theme.h index 96bfab9a5..4076b0abb 100644 --- a/theme.h +++ b/theme.h @@ -44,6 +44,7 @@ namespace Plasma class PLASMA_EXPORT Theme : public QObject { Q_OBJECT + Q_PROPERTY( QString themeName READ themeName ) public: /** @@ -78,7 +79,7 @@ class PLASMA_EXPORT Theme : public QObject * ".svg" part or a leading slash) * @return the full path to the requested file for the current theme */ - QString image( const QString& name ) const; + Q_INVOKABLE QString image( const QString& name ) const; Q_SIGNALS: /**