bind plasmoid.rootItem
This commit is contained in:
parent
9e5451a1df
commit
c67938106b
@ -145,6 +145,8 @@ void DeclarativeAppletScript::qmlCreationFinished()
|
||||
//If it's a popupapplet and the root object has a "compactRepresentation" component, use that instead of the icon
|
||||
Plasma::Applet *a = applet();
|
||||
Plasma::PopupApplet *pa = qobject_cast<Plasma::PopupApplet *>(a);
|
||||
m_self.setProperty("rootItem", m_engine->newQObject(m_declarativeWidget->rootObject()));
|
||||
|
||||
if (pa) {
|
||||
QDeclarativeComponent *iconComponent = m_declarativeWidget->rootObject()->property("compactRepresentation").value<QDeclarativeComponent *>();
|
||||
if (iconComponent) {
|
||||
|
@ -41,7 +41,7 @@ class EngineAccess;
|
||||
|
||||
class DeclarativeAppletScript : public AbstractJsAppletScript
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
DeclarativeAppletScript(QObject *parent, const QVariantList &args);
|
||||
|
Loading…
Reference in New Issue
Block a user