remove close() slot

This commit is contained in:
Marco Martin 2013-10-30 11:08:35 +01:00
parent d713dc1c13
commit 1129c99296
3 changed files with 5 additions and 13 deletions

View File

@ -44,6 +44,7 @@ Item {
WidgetExplorer {
id: widgetExplorer
desktopView: desktop
onShouldClose: main.closed();
}
PlasmaComponents.ContextMenu {

View File

@ -391,7 +391,7 @@ void WidgetExplorer::addApplet(const QString &pluginName)
void WidgetExplorer::immutabilityChanged(Plasma::Types::ImmutabilityType type)
{
if (type != Plasma::Types::Mutable) {
close();
emit shouldClose();
}
}
@ -442,7 +442,7 @@ void WidgetExplorer::downloadWidgets(const QString &type)
knsDialog->raise();
*/
}
close();
emit shouldClose();
}
void WidgetExplorer::openWidgetFile()
@ -460,7 +460,7 @@ void WidgetExplorer::openWidgetFile()
assistant->raise();
assistant->setFocus();
*/
close();
emit shouldClose();
}
void WidgetExplorer::uninstall(const QString &pluginName)
@ -481,11 +481,5 @@ void WidgetExplorer::uninstall(const QString &pluginName)
}
}
void WidgetExplorer::close()
{
emit closed();
deleteLater();
}
#include "moc_widgetexplorer.cpp"

View File

@ -128,13 +128,10 @@ public:
*/
Q_INVOKABLE void uninstall(const QString &pluginName);
Q_INVOKABLE void close();
//Q_INVOKABLE QPoint tooltipPosition(QGraphicsObject *item, int tipWidth, int tipHeight);
Q_SIGNALS:
void widgetsMenuActionsChanged();
void extraActionsChanged();
void closed();
void shouldClose();
void desktopViewChanged();
void applicationChanged();