Add some Q_PROPERTIES to Plasma::AbstractRunner.
Lets QML scripts to access some Runner description features. REVIEW: 103718
This commit is contained in:
parent
74b1a3e233
commit
bbadb17844
@ -64,7 +64,10 @@ class PLASMA_EXPORT AbstractRunner : public QObject
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
Q_PROPERTY(bool matchingSuspended READ isMatchingSuspended WRITE suspendMatching NOTIFY matchingSuspended)
|
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:
|
public:
|
||||||
/** Specifies a nominal speed for the runner */
|
/** Specifies a nominal speed for the runner */
|
||||||
enum Speed {
|
enum Speed {
|
||||||
|
Loading…
Reference in New Issue
Block a user