on xenial help sign in
Added default Header Components. Used in indicators.
commitc7da358d7e969e5c705518954fdb0517c9946b94 authorNick Dedekind <nicholas.dedekind@gmail.com> dateFri 1 Aug 2014, 17:13 (12 years ago) parent0a75510
2 files changed+29−3
qml/Components/Header.qml+27 qml/Panel/MenuContent.qml+2−3
qml/Components/Header.qmlnew file+27
@@ -0,0 +1,27 @@
1+/*
2+ * Copyright (C) 2014 Canonical, Ltd.
3+ *
4+ * This program is free software; you can redistribute it and/or modify
5+ * it under the terms of the GNU General Public License as published by
6+ * the Free Software Foundation; version 3.
7+ *
8+ * This program is distributed in the hope that it will be useful,
9+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
10+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+ * GNU General Public License for more details.
12+ *
13+ * You should have received a copy of the GNU General Public License
14+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
15+ */
16+
17+import Ubuntu.Components 1.1
18+import Ubuntu.Components.Themes.Ambiance 1.1
19+
20+PageHeadStyle {
21+ id: root
22+
23+ property var styledItem: root
24+ property string title
25+ property var config: PageHeadConfiguration {}
26+ property var contents: null
27+}
qml/Panel/MenuContent.qml+2−3
@@ -16,7 +16,7 @@
1616
1717import QtQuick 2.0
1818import QtQuick.Layouts 1.1
19−import Ubuntu.Components 0.1
19+import Ubuntu.Components 1.1
2020import Unity.Indicators 0.1 as Indicators
2121import Utils 0.1
2222import "../Components"
@@ -71,7 +71,7 @@ Rectangle {
7171 boundsBehavior: Flickable.StopAtBounds
7272 cacheBuffer: 1073741823
7373
74− delegate: PageHeader {
74+ delegate: Header {
7575 width: ListView.view.width
7676 height: implicitHeight
7777
@@ -79,7 +79,6 @@ Rectangle {
7979
8080 IndicatorDelegate {
8181 id: indicatorDelegate
82−
8382 Component.onCompleted: {
8483 for(var pName in indicatorProperties) {
8584 if (indicatorDelegate.hasOwnProperty(pName)) {