[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [plasma-mediacenter/PMC/0.9] shells/newshell: checking initial fullScreen status of PMC MainWindow
From: Sinny Kumari <ksinny () gmail ! com>
Date: 2012-04-22 14:48:35
Message-ID: 20120422144835.3CFB8A60A9 () git ! kde ! org
[Download RAW message or body]
Git commit a873295de0898c5f5e0f8af1d6ec629d1879dfb7 by Sinny Kumari.
Committed on 22/04/2012 at 16:46.
Pushed by sinnykumari into branch 'PMC/0.9'.
checking initial fullScreen status of PMC MainWindow
M +1 -0 shells/newshell/mainwindow.cpp
M +1 -1 shells/newshell/package/contents/ui/mediacenter.qml
http://commits.kde.org/plasma-mediacenter/a873295de0898c5f5e0f8af1d6ec629d1879dfb7
diff --git a/shells/newshell/mainwindow.cpp b/shells/newshell/mainwindow.cpp
index 56c3a48..26f7b1f 100644
--- a/shells/newshell/mainwindow.cpp
+++ b/shells/newshell/mainwindow.cpp
@@ -72,6 +72,7 @@ MainWindow::MainWindow(QWidget *parent) : KMainWindow(parent)
BackendsModel *backendsModel = new BackendsModel(view->engine(), this);
view->rootContext()->setContextProperty("backendsModel", backendsModel);
view->rootContext()->setContextProperty("mainwindow", this);
+ view->rootContext()->setContextProperty("startedFullScreen", isFullScreen());
m_structure = Plasma::PackageStructure::load("Plasma/Generic");
Plasma::Package *package = new Plasma::Package(QString(), \
"org.kde.plasma.mediacenter", m_structure);
diff --git a/shells/newshell/package/contents/ui/mediacenter.qml \
b/shells/newshell/package/contents/ui/mediacenter.qml index 1f80f20..1370d79 100644
--- a/shells/newshell/package/contents/ui/mediacenter.qml
+++ b/shells/newshell/package/contents/ui/mediacenter.qml
@@ -170,7 +170,7 @@ Rectangle {
property bool fullScreen
- iconSource: "view-fullscreen"
+ iconSource: startedFullScreen ? "view-restore" : "view-fullscreen"
onClicked: {
fullScreen = mainwindow.toggleFullScreen();
if(fullScreen) {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic