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:
parent
7916c9d766
commit
ee3deabb48
@ -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"
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user