move setsource into desktopview

This commit is contained in:
Marco Martin 2013-09-13 15:20:36 +02:00
parent 9bc1c68fca
commit 5735faec03
2 changed files with 2 additions and 2 deletions

View File

@ -174,7 +174,6 @@ PlasmaQuickView::PlasmaQuickView(Plasma::Corona *corona, QWindow *parent)
} }
setResizeMode(PlasmaQuickView::SizeRootObjectToView); setResizeMode(PlasmaQuickView::SizeRootObjectToView);
setSource(QUrl::fromLocalFile(corona->package().filePath("views", "Desktop.qml")));
QObject::connect(corona, &Plasma::Corona::packageChanged, QObject::connect(corona, &Plasma::Corona::packageChanged,
this, &PlasmaQuickView::coronaPackageChanged); this, &PlasmaQuickView::coronaPackageChanged);

View File

@ -19,11 +19,12 @@
#include "desktopview.h" #include "desktopview.h"
#include "shellcorona.h" #include "shellcorona.h"
#include <Plasma/Package>
DesktopView::DesktopView(ShellCorona *corona, QWindow *parent) DesktopView::DesktopView(ShellCorona *corona, QWindow *parent)
: PlasmaQuickView(corona, parent) : PlasmaQuickView(corona, parent)
{ {
setSource(QUrl::fromLocalFile(corona->package().filePath("views", "Desktop.qml")));
} }
DesktopView::~DesktopView() DesktopView::~DesktopView()