appletAdded becomes AppletAdded(applet,x,y)

This commit is contained in:
Marco Martin 2013-08-30 14:15:48 +02:00
parent 087bc4d8fe
commit 7bc3fbc589
2 changed files with 5 additions and 8 deletions

View File

@ -78,7 +78,7 @@ void ContainmentInterface::init()
applet->init();
}
m_appletInterfaces << applet;
emit appletAdded(applet);
emit appletAdded(applet, 0, 0);
}
}
@ -177,14 +177,11 @@ void ContainmentInterface::processMimeData(QMimeData *mimeData, int x, int y)
QObject *appletGraphicObject;
if (applet) {
appletGraphicObject = applet->property("graphicObject").value<QObject *>();
if (appletGraphicObject) {
appletGraphicObject->setProperty("x", x);
appletGraphicObject->setProperty("y", y);
}
}
blockSignals(false);
emit appletAdded(appletGraphicObject);
emit appletAdded(appletGraphicObject, x, y);
emit appletsChanged();
}
}
@ -219,7 +216,7 @@ void ContainmentInterface::appletAddedForward(Plasma::Applet *applet)
}
m_appletInterfaces << appletGraphicObject;
emit appletAdded(appletGraphicObject);
emit appletAdded(appletGraphicObject, 0, 0);
emit appletsChanged();
}

View File

@ -72,7 +72,7 @@ protected:
void addContainmentActions(QMenu &desktopMenu, QEvent *event);
Q_SIGNALS:
void appletAdded(QObject *applet);
void appletAdded(QObject *applet, int x, int y);
void appletRemoved(QObject *applet);
void screenChanged();
void activityChanged();