use a dynamic property
so qml doesn't see it
This commit is contained in:
parent
52c3a27e18
commit
d101966f91
@ -177,6 +177,7 @@ void WallpaperInterface::setAction(const QString &name, const QString &text, con
|
|||||||
}
|
}
|
||||||
|
|
||||||
action->setObjectName(name);
|
action->setObjectName(name);
|
||||||
|
setProperty("contextualActions", QVariant::fromValue(contextualActions()));
|
||||||
}
|
}
|
||||||
|
|
||||||
void WallpaperInterface::removeAction(const QString &name)
|
void WallpaperInterface::removeAction(const QString &name)
|
||||||
@ -191,6 +192,7 @@ void WallpaperInterface::removeAction(const QString &name)
|
|||||||
|
|
||||||
delete action;
|
delete action;
|
||||||
}
|
}
|
||||||
|
setProperty("contextualActions", QVariant::fromValue(contextualActions()));
|
||||||
}
|
}
|
||||||
|
|
||||||
QAction *WallpaperInterface::action(QString name) const
|
QAction *WallpaperInterface::action(QString name) const
|
||||||
|
@ -41,7 +41,6 @@ class WallpaperInterface : public QQuickItem
|
|||||||
|
|
||||||
//Q_PROPERTY(QString plugin READ plugin WRITE setPlugin NOTIFY pluginChanged)
|
//Q_PROPERTY(QString plugin READ plugin WRITE setPlugin NOTIFY pluginChanged)
|
||||||
Q_PROPERTY(ConfigPropertyMap *configuration READ configuration NOTIFY configurationChanged)
|
Q_PROPERTY(ConfigPropertyMap *configuration READ configuration NOTIFY configurationChanged)
|
||||||
Q_PROPERTY(QList<QAction*> contextualActions READ contextualActions)
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
WallpaperInterface(ContainmentInterface *parent = 0);
|
WallpaperInterface(ContainmentInterface *parent = 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user