~aacid/ubuntu-ui-toolkit/nonsquareicons

« back to all changes in this revision

Viewing changes to tests/resources/navigation/MyDeprecatedPage.qml

  • Committer: Tarmac
  • Author(s): Tim Peeters
  • Date: 2015-02-12 17:33:52 UTC
  • mfrom: (1383.2.32 10-mv12)
  • Revision ID: tarmac-20150212173352-4dquh93gg4xhg4b7
Add MainView 1.2 which removes the deprecated toolbar support.

Approved by PS Jenkins bot, Christian Dywan.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright 2012-2015 Canonical Ltd.
 
3
 *
 
4
 * This program is free software; you can redistribute it and/or modify
 
5
 * it under the terms of the GNU Lesser 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 Lesser General Public License for more details.
 
12
 *
 
13
 * You should have received a copy of the GNU Lesser General Public License
 
14
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
15
 */
 
16
 
 
17
import QtQuick 2.2
 
18
import Ubuntu.Components 1.0
 
19
 
 
20
Page {
 
21
    title: i18n.tr("My 1.0 page")
 
22
 
 
23
    Flickable {
 
24
        anchors.fill: parent
 
25
        contentHeight: height + units.gu(10)
 
26
        Label {
 
27
            anchors {
 
28
                top: parent.top
 
29
                topMargin: units.gu(16)
 
30
                horizontalCenter: parent.horizontalCenter
 
31
            }
 
32
 
 
33
            text: i18n.tr("This is an external page.")
 
34
            color: "#757373"
 
35
        }
 
36
    }
 
37
 
 
38
    tools: ToolbarItems {
 
39
        ToolbarButton {
 
40
            action: Action {
 
41
                iconName: "settings"
 
42
                text: "Settings"
 
43
            }
 
44
        }
 
45
        ToolbarButton {
 
46
            action: Action {
 
47
                iconName: "contact"
 
48
                text: "Contacts"
 
49
            }
 
50
        }
 
51
        ToolbarButton {
 
52
            action: Action {
 
53
                iconName: "share"
 
54
                text: "Share"
 
55
            }
 
56
        }
 
57
        ToolbarButton {
 
58
            action: Action {
 
59
                iconName: "select"
 
60
                text: "Select"
 
61
            }
 
62
        }
 
63
    }
 
64
}