Add some Q_PROPERTIES to Plasma::AbstractRunner.

Lets QML scripts to access some Runner description features.

REVIEW: 103718
This commit is contained in:
Aleix Pol 2012-01-18 12:51:48 +01:00 committed by Sebastian Trueg
parent 84f82c1ba2
commit 35ce9cc094

View File

@ -64,7 +64,10 @@ class PLASMA_EXPORT AbstractRunner : public QObject
{
Q_OBJECT
Q_PROPERTY(bool matchingSuspended READ isMatchingSuspended WRITE suspendMatching NOTIFY matchingSuspended)
Q_PROPERTY(QString id READ id);
Q_PROPERTY(QString description READ description);
Q_PROPERTY(QString name READ name);
Q_PROPERTY(QIcon icon READ icon);
public:
/** Specifies a nominal speed for the runner */
enum Speed {