~laney/ubuntu-system-settings/battery-charge-graph

« back to all changes in this revision

Viewing changes to plugins/language/KeyboardLayoutItem.qml

  • Committer: Tarmac
  • Author(s): William Hua
  • Date: 2013-11-04 15:18:01 UTC
  • mfrom: (484.1.5 enable-maliit-settings)
  • Revision ID: tarmac-20131104151801-kq9yk5ccpemtxi0d
Re-enable some Maliit settings.

Approved by Sebastien Bacher, PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * This file is part of system-settings
3
 
 *
4
 
 * Copyright (C) 2013 Canonical Ltd.
5
 
 *
6
 
 * Contact: William Hua <william.hua@canonical.com>
7
 
 *
8
 
 * This program is free software: you can redistribute it and/or modify it
9
 
 * under the terms of the GNU General Public License version 3, as published
10
 
 * by the Free Software Foundation.
11
 
 *
12
 
 * This program is distributed in the hope that it will be useful, but
13
 
 * WITHOUT ANY WARRANTY; without even the implied warranties of
14
 
 * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
15
 
 * PURPOSE.  See the GNU General Public License for more details.
16
 
 *
17
 
 * You should have received a copy of the GNU General Public License along
18
 
 * with this program.  If not, see <http://www.gnu.org/licenses/>.
19
 
 */
20
 
 
21
 
import QtQuick 2.0
22
 
import Ubuntu.Components 0.1
23
 
import Ubuntu.Components.ListItems 0.1 as ListItem
24
 
 
25
 
ListItem.Base {
26
 
    property alias name: name.text
27
 
    property alias checked: checkBox.checked
28
 
    property alias shortName: shortName.text
29
 
 
30
 
    Row {
31
 
        anchors.top: parent.top
32
 
        anchors.bottom: parent.bottom
33
 
        spacing: units.gu(2)
34
 
 
35
 
        CheckBox {
36
 
            id: checkBox
37
 
 
38
 
            anchors.verticalCenter: parent.verticalCenter
39
 
        }
40
 
 
41
 
        Row {
42
 
            anchors.top: parent.top
43
 
            anchors.bottom: parent.bottom
44
 
            spacing: units.gu(1)
45
 
 
46
 
            Rectangle {
47
 
                width: units.gu(3.0)
48
 
                height: units.gu(3.0)
49
 
                radius: units.gu(0.5)
50
 
 
51
 
                color: Theme.palette.normal.backgroundText
52
 
 
53
 
                anchors.verticalCenter: parent.verticalCenter
54
 
 
55
 
                Label {
56
 
                    id: shortName
57
 
 
58
 
                    color: Theme.palette.normal.background
59
 
                    fontSize: "small"
60
 
 
61
 
                    anchors.centerIn: parent
62
 
                }
63
 
            }
64
 
 
65
 
            Label {
66
 
                id: name
67
 
 
68
 
                anchors.verticalCenter: parent.verticalCenter
69
 
            }
70
 
        }
71
 
    }
72
 
 
73
 
    onClicked: checked = !checked
74
 
}