use a dynamic property

so qml doesn't see it
This commit is contained in:
Marco Martin 2013-09-10 16:38:16 +02:00
parent 52c3a27e18
commit d101966f91
2 changed files with 2 additions and 1 deletions

View File

@ -177,6 +177,7 @@ void WallpaperInterface::setAction(const QString &name, const QString &text, con
}
action->setObjectName(name);
setProperty("contextualActions", QVariant::fromValue(contextualActions()));
}
void WallpaperInterface::removeAction(const QString &name)
@ -191,6 +192,7 @@ void WallpaperInterface::removeAction(const QString &name)
delete action;
}
setProperty("contextualActions", QVariant::fromValue(contextualActions()));
}
QAction *WallpaperInterface::action(QString name) const

View File

@ -41,7 +41,6 @@ class WallpaperInterface : public QQuickItem
//Q_PROPERTY(QString plugin READ plugin WRITE setPlugin NOTIFY pluginChanged)
Q_PROPERTY(ConfigPropertyMap *configuration READ configuration NOTIFY configurationChanged)
Q_PROPERTY(QList<QAction*> contextualActions READ contextualActions)
public:
WallpaperInterface(ContainmentInterface *parent = 0);