remove AppletPrivate::selectItemToDestroy()

This commit is contained in:
Marco Martin 2012-11-09 15:20:42 +01:00
parent 3d3a99aa0d
commit 798fc9271b
5 changed files with 1 additions and 29 deletions

View File

@ -725,7 +725,7 @@ void Applet::flushPendingConstraintsEvents()
if (closeApplet) {
closeApplet->setEnabled(unlocked);
closeApplet->setVisible(unlocked);
connect(closeApplet, SIGNAL(triggered(bool)), this, SLOT(selectItemToDestroy()), Qt::UniqueConnection);
connect(closeApplet, SIGNAL(triggered(bool)), this, SLOT(destroy()), Qt::UniqueConnection);
}
QAction *configAction = d->actions->action("configure");

View File

@ -899,7 +899,6 @@ class PLASMA_EXPORT Applet : public QObject
Applet(const QString &packagePath, uint appletId, const QVariantList &args);
Q_PRIVATE_SLOT(d, void cleanUpAndDelete())
Q_PRIVATE_SLOT(d, void selectItemToDestroy())
Q_PRIVATE_SLOT(d, void configDialogFinished())
Q_PRIVATE_SLOT(d, void updateShortcuts())
Q_PRIVATE_SLOT(d, void publishCheckboxStateChanged(int state))

View File

@ -24,7 +24,6 @@ Functionality Blocks
Porting of Applet and Containment
=================================
* AppletPrivate::selectItemToDestroy()
* ContainmentPrivate::appletAt(const QPointF &point)
* ContainmentPrivate::setScreen(int newScreen, int newDesktop, bool preventInvalidDesktops)
* all geometry functions in Applet and Containment (width, height, geometry, raise, lower...)

View File

@ -199,31 +199,6 @@ void AppletPrivate::init(const QString &packagePath)
}
}
void AppletPrivate::selectItemToDestroy()
{
//FIXME: this will not work nicely with multiple screens and being zoomed out!
//TODO: port away from QGV
/*
if (isContainment) {
QGraphicsView *view = q->view();
if (view && view->transform().isScaling() &&
q->scene()->focusItem() != q) {
QGraphicsItem *focus = q->scene()->focusItem();
if (focus) {
Containment *toDestroy = dynamic_cast<Containment*>(focus->topLevelItem());
if (toDestroy) {
toDestroy->destroy();
return;
}
}
}
}*/
q->destroy();
}
void AppletPrivate::cleanUpAndDelete()
{
// reimplemented in the UI specific library

View File

@ -108,7 +108,6 @@ public:
KConfigGroup *mainConfigGroup();
QString visibleFailureText(const QString &reason);
void resetConfigurationObject();
void selectItemToDestroy();
void addGlobalShortcutsPage(KConfigDialog *dialog);
void addPublishPage(KConfigDialog *dialog);
void configDialogFinished();