2
* This file is part of Checkbox
4
* Copyright 2013 Canonical Ltd.
7
* - Julia Segal <julia.segal@cellsoftware.co.uk>
9
* This program is free software; you can redistribute it and/or modify
10
* it under the terms of the GNU General Public License as published by
11
* the Free Software Foundation; version 3.
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
18
* You should have received a copy of the GNU General Public License
19
* along with this program. If not, see <http://www.gnu.org/licenses/>.
24
import Ubuntu.Components 0.1
25
import Ubuntu.Components.ListItems 0.1 as ListItem
37
property string groupname: section
38
property alias checked: groupcheckbox.checked
39
property string labelname: section
40
property bool open: true
43
open?openshutIcon.source = "artwork/DownArrow.png":openshutIcon.source = "artwork/RightArrow.png"
47
width: parent.width// - groupcheckbox.width
49
anchors.right: parent.right
52
itemdelegate.open = !itemdelegate.open
53
groupedList.openShutSubgroup(section, itemdelegate.open)
64
source: "artwork/DownArrow.png"
68
verticalCenter: parent.verticalCenter
69
left: groupfiller.left
72
opacity: enabled ? 1.0 : 0.5
77
anchors.verticalCenter: parent.verticalCenter
78
anchors.left: openshutIcon.right
79
anchors.leftMargin: units.gu(1)
82
groupedList.selectGroup(section, checked)
84
groupedList.showWarning(groupcheckbox);
93
anchors.verticalCenter: parent.verticalCenter
94
anchors.left: groupcheckbox.right
95
anchors.leftMargin: units.gu(1)
101
anchors.left: grouptext.right
105
id: estimatedTimeText
106
// ajh - to do - this is very slow AND inconsistent groupedList.getEstimatedTime(section)
107
text: i18n.tr("Unknown")
109
anchors.left: estfiller.right
110
anchors.verticalCenter: parent.verticalCenter
111
horizontalAlignment: Text.AlignHCenter
118
ListItem.ThinDivider {}