From c03d835bdfb347986f64d49bf33a69cb6eb0ff05 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Wed, 20 Jan 2010 19:07:51 +0000 Subject: [PATCH] missing Q_PROPERTY and Q_INVOKABLE entries svn path=/trunk/KDE/kdelibs/; revision=1077721 --- extenders/extender.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/extenders/extender.h b/extenders/extender.h index bd4b21119..45026aafc 100644 --- a/extenders/extender.h +++ b/extenders/extender.h @@ -66,6 +66,11 @@ class PLASMA_EXPORT Extender : public QGraphicsWidget { Q_OBJECT Q_PROPERTY(QString emptyExtenderMessage READ emptyExtenderMessage WRITE setEmptyExtenderMessage) + Q_PROPERTY(QList items READ items()) + Q_PROPERTY(QList attachedItems READ attachedItems()) + Q_PROPERTY(QList detachedItems READ detachedItems()) + Q_PROPERTY(QList groups READ groups()) + Q_PROPERTY(bool empty READ isEmpty()) public: /** @@ -136,7 +141,7 @@ class PLASMA_EXPORT Extender : public QGraphicsWidget * even if the requested item isn't instantiated yet. * @returns the requested item */ - ExtenderItem *item(const QString &name) const; + Q_INVOKABLE ExtenderItem *item(const QString &name) const; /** * Extra convenience function for obtaining groups specified by name. This will avoid needed @@ -144,7 +149,7 @@ class PLASMA_EXPORT Extender : public QGraphicsWidget * @returns the requested group * @since 4.3 */ - ExtenderGroup *group(const QString &name) const; + Q_INVOKABLE ExtenderGroup *group(const QString &name) const; /** * This function can be used for easily determining if a certain item is already displayed @@ -154,7 +159,7 @@ class PLASMA_EXPORT Extender : public QGraphicsWidget * @returns whether or not this item already exists. * @since 4.3 */ - bool hasItem(const QString &name) const; + Q_INVOKABLE bool hasItem(const QString &name) const; /** * @return true if the Extender is visually empty (though it may have items such as