icon and title for the desktop window

This commit is contained in:
Marco Martin 2014-02-28 16:26:57 +01:00
parent 66bac622b4
commit 92d2e6adb6

View File

@ -26,6 +26,7 @@
#include <QScreen> #include <QScreen>
#include <kwindowsystem.h> #include <kwindowsystem.h>
#include <klocalizedstring.h>
#include <Plasma/Package> #include <Plasma/Package>
@ -35,6 +36,8 @@ DesktopView::DesktopView(ShellCorona *corona, QScreen *screen)
m_fillScreen(false), m_fillScreen(false),
m_dashboardShown(false) m_dashboardShown(false)
{ {
setTitle(i18n("Desktop"));
setIcon(QIcon::fromTheme("user-desktop"));
setScreen(screen); setScreen(screen);
engine()->rootContext()->setContextProperty("desktop", this); engine()->rootContext()->setContextProperty("desktop", this);
setSource(QUrl::fromLocalFile(corona->package().filePath("views", "Desktop.qml"))); setSource(QUrl::fromLocalFile(corona->package().filePath("views", "Desktop.qml")));