~zsombi/ubuntu-ui-toolkit/120-custompanel

« back to all changes in this revision

Viewing changes to tests/resources/listitems/Dividers.qml

  • Committer: Zsombor Egri
  • Date: 2014-11-04 09:02:29 UTC
  • mfrom: (1246.1.32 100-listlayout)
  • mto: This revision was merged to the branch mainline in revision 1309.
  • Revision ID: zsombor.egri@canonical.com-20141104090229-ceeqj1lt54sdkpql
prereq sync

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright 2014 Canonical Ltd.
 
3
 *
 
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.
 
7
 *
 
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.
 
12
 *
 
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/>.
 
15
 */
 
16
 
 
17
import QtQuick 2.0
 
18
import Ubuntu.Components 0.1
 
19
import Ubuntu.Components.ListItems 0.1
 
20
import Ubuntu.Components.Popups 0.1
 
21
 
 
22
MainView {
 
23
    width: units.gu(50)
 
24
    height: units.gu(100)
 
25
 
 
26
    Component.onCompleted: Theme.name = "Ubuntu.Components.Themes.SuruDark"
 
27
 
 
28
    Column {
 
29
        width: parent.width
 
30
        Repeater {
 
31
            model: 5
 
32
            Subtitled {
 
33
                text: "Caption text"
 
34
                subText: "Subtitle"
 
35
            }
 
36
        }
 
37
        ThinDivider {}
 
38
        Repeater {
 
39
            model: 5
 
40
            Subtitled {
 
41
                text: "Caption text"
 
42
                subText: "Subtitle"
 
43
            }
 
44
        }
 
45
    }
 
46
}