~twstd-dev/ubuntu-clock-app/next-alarm

« back to all changes in this revision

Viewing changes to app/worldclock/AddWorldCityButton.qml

  • Committer: twstddev
  • Date: 2014-09-06 16:42:59 UTC
  • mfrom: (58.2.28 ubuntu-clock-app)
  • Revision ID: twstd.dev@gmail.com-20140906164259-a0ftsa7uinsy3ixn
Resolve merge conflict and update to the newset model signals

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2014 Canonical Ltd
 
3
 *
 
4
 * This file is part of Ubuntu Clock App
 
5
 *
 
6
 * Ubuntu Clock App is free software: you can redistribute it and/or modify
 
7
 * it under the terms of the GNU General Public License version 3 as
 
8
 * published by the Free Software Foundation.
 
9
 *
 
10
 * Ubuntu Clock App is distributed in the hope that it will be useful,
 
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
 * GNU General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU General Public License
 
16
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
17
 */
 
18
 
 
19
import QtQuick 2.3
 
20
import Ubuntu.Components 1.1
 
21
import "../components"
 
22
 
 
23
AbstractButton {
 
24
    id: addWorldCityButton
 
25
 
 
26
    width: childrenRect.width
 
27
    height: childrenRect.height
 
28
 
 
29
    Row {
 
30
        spacing: units.gu(1)
 
31
 
 
32
        width: childrenRect.width
 
33
        height: _addButton.height
 
34
 
 
35
        Label {
 
36
            text: i18n.tr("Add")
 
37
            color: UbuntuColors.midAubergine
 
38
            anchors.verticalCenter: parent.verticalCenter
 
39
        }
 
40
 
 
41
        ClockCircle {
 
42
            id: _addButton
 
43
 
 
44
            isOuter: true
 
45
            width: units.gu(5)
 
46
 
 
47
            ClockCircle {
 
48
                width: units.gu(3.5)
 
49
                anchors.centerIn: parent
 
50
 
 
51
                Icon {
 
52
                    anchors.centerIn: parent
 
53
                    color: UbuntuColors.coolGrey
 
54
                    name: "add"
 
55
                    height: units.gu(2)
 
56
                    width: height
 
57
                }
 
58
            }
 
59
        }
 
60
 
 
61
        Label {
 
62
            text: i18n.tr("City")
 
63
            color: UbuntuColors.midAubergine
 
64
            anchors.verticalCenter: parent.verticalCenter
 
65
        }
 
66
    }
 
67
 
 
68
    onClicked: {
 
69
        pageStack.push(Qt.resolvedUrl("WorldCityList.qml"))
 
70
    }
 
71
}