[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kanagram] src/plasma-active/package/contents/ui: Add Help page to the active based frontend
From:       Laszlo Papp <lpapp () kde ! org>
Date:       2012-06-30 17:26:01
Message-ID: 20120630172601.19F6CA60A6 () git ! kde ! org
[Download RAW message or body]

Git commit 4add6bb0dadf541658efa6b65cdb48b8c130270c by Laszlo Papp.
Committed on 30/06/2012 at 19:25.
Pushed by lpapp into branch 'master'.

Add Help page to the active based frontend

A  +48   -0    src/plasma-active/package/contents/ui/HelpPage.qml     [License: LGPL \
(v2.1+)]

http://commits.kde.org/kanagram/4add6bb0dadf541658efa6b65cdb48b8c130270c

diff --git a/src/plasma-active/package/contents/ui/HelpPage.qml \
b/src/plasma-active/package/contents/ui/HelpPage.qml new file mode 100644
index 0000000..f45c6d4
--- /dev/null
+++ b/src/plasma-active/package/contents/ui/HelpPage.qml
@@ -0,0 +1,48 @@
+/******************************************************************************
+ * This file is part of the Kanagram project
+ * Copyright (C) 2012 Laszlo Papp <lpapp@kde.org>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+ */
+
+import QtQuick 1.1
+
+import org.kde.plasma.components 0.1
+
+Page {
+
+    function pushPage(file) {
+        var component = Qt.createComponent(file)
+        if (component.status == Component.Ready)
+            pageStack.push(component);
+        else
+            console.log("Error loading component:", component.errorString());
+    }
+
+    Rectangle {
+        id: helpPageMainRectangle;
+        color: "black";
+        anchors.fill: parent;
+
+        Flickable {
+            width: parent.width;
+            height: parent.height;
+            // contentWidth: settingsPageMainColumn.width;
+            // contentHeight: settingsPageMainColumn.height;
+        }
+    }
+
+    tools: commonTools;
+}


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic