We only want to load the new Desktop.qml only in case we're a DesktopView

Therefore, this has to be moved to DesktopView
This commit is contained in:
Aleix Pol 2014-05-27 16:36:57 +02:00
parent 7916c9d766
commit ee3deabb48
2 changed files with 0 additions and 12 deletions

View File

@ -174,9 +174,6 @@ View::View(Plasma::Corona *corona, QWindow *parent)
}
setResizeMode(View::SizeRootObjectToView);
QObject::connect(corona, &Plasma::Corona::packageChanged,
this, &View::coronaPackageChanged);
}
View::~View()
@ -233,12 +230,6 @@ void View::showConfigurationInterface(Plasma::Applet *applet)
d->showConfigurationInterface(applet);
}
void View::coronaPackageChanged(const Plasma::Package &package)
{
setContainment(0);
setSource(QUrl::fromLocalFile(package.filePath("views", "Desktop.qml")));
}
}
#include "moc_view.cpp"

View File

@ -104,9 +104,6 @@ protected Q_SLOTS:
*/
virtual void showConfigurationInterface(Plasma::Applet *applet);
private Q_SLOTS:
void coronaPackageChanged(const Plasma::Package &package);
Q_SIGNALS:
/**
* emitted when the location is changed