icon and title for the desktop window
This commit is contained in:
parent
66bac622b4
commit
92d2e6adb6
@ -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")));
|
||||||
|
Loading…
Reference in New Issue
Block a user