2
* Copyright 2013 Canonical Ltd.
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.
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.
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/>.
18
import Ubuntu.Components 0.1
19
import Ubuntu.Layouts 0.1
35
when: layouts.width > units.gu(50) && layouts.width <= units.gu(70)
40
height: parent.height / 3
48
height: parent.height / 3
56
height: parent.height / 3
68
when: layouts.width > units.gu(70) && layouts.width <= units.gu(90)
73
width: parent.width / 3
81
width: parent.width / 3
89
width: parent.width / 3
100
name: "hiding-element"
101
when: layouts.width > units.gu(90) && layouts.width < units.gu(100)
106
width: parent.width / 2
111
width: parent.width / 2
120
when: layouts.width >= units.gu(100)
157
bottom: parent.bottom
165
Layouts.item: "green"
168
left: redButton.right
178
top: greenButton.bottom
179
left: redButton.right
181
bottom: blueButton.top
190
left: redButton.right
192
bottom: parent.bottom