2
* This file is part of system-settings
4
* Copyright (C) 2015 Canonical Ltd.
6
* Contact: Ken VanDine <ken.vandine@canonical.com>
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.
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.
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/>.
22
import SystemSettings 1.0
23
import Ubuntu.Components 1.3
24
import Ubuntu.Components.ListItems 1.3 as ListItem
27
property var buttonEnum
30
target: primaryLeftCheck
32
value: (buttonEnum === "Left") ? true : false
36
target: primaryRightCheck
38
value: (buttonEnum === "Right") ? true : false
42
text: i18n.tr("Primary button:")
50
leftMargin: units.gu(2)
51
rightMargin: units.gu(2)
54
highlightWhenPressed: false
55
height: itemRow.height
71
height: primaryLeftCheck.height
72
verticalAlignment: Text.AlignVCenter
88
height: primaryRightCheck.height
89
verticalAlignment: Text.AlignVCenter
90
text: i18n.tr("Right")