move setsource into desktopview
This commit is contained in:
parent
9bc1c68fca
commit
5735faec03
@ -174,7 +174,6 @@ PlasmaQuickView::PlasmaQuickView(Plasma::Corona *corona, QWindow *parent)
|
||||
}
|
||||
|
||||
setResizeMode(PlasmaQuickView::SizeRootObjectToView);
|
||||
setSource(QUrl::fromLocalFile(corona->package().filePath("views", "Desktop.qml")));
|
||||
|
||||
QObject::connect(corona, &Plasma::Corona::packageChanged,
|
||||
this, &PlasmaQuickView::coronaPackageChanged);
|
||||
|
@ -19,11 +19,12 @@
|
||||
#include "desktopview.h"
|
||||
#include "shellcorona.h"
|
||||
|
||||
#include <Plasma/Package>
|
||||
|
||||
DesktopView::DesktopView(ShellCorona *corona, QWindow *parent)
|
||||
: PlasmaQuickView(corona, parent)
|
||||
{
|
||||
|
||||
setSource(QUrl::fromLocalFile(corona->package().filePath("views", "Desktop.qml")));
|
||||
}
|
||||
|
||||
DesktopView::~DesktopView()
|
||||
|
Loading…
Reference in New Issue
Block a user