2
* Copyright (C) 2013 Canonical, Ltd.
5
* Christian Dywan <christian.dywan@canonical.com>
7
* This program is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU Lesser General Public License as published by
9
* the Free Software Foundation; version 3.
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU Lesser General Public License for more details.
16
* You should have received a copy of the GNU Lesser General Public License
17
* along with this program. If not, see <http://www.gnu.org/licenses/>.
21
import U1db 1.0 as U1db
22
import Ubuntu.Components 0.1
23
import Ubuntu.Components.ListItems 0.1 as ListItem
32
Uncomment to persistently store contacts on disk
38
database: contactsDatabase
41
defaults: { 'name': 'John', 'city': 'Dublin', 'phone': 65849 }
45
database: contactsDatabase
48
defaults: { 'name': 'Ivanka', 'city': 'Dublin', 'phone': 98765 }
52
database: contactsDatabase
55
defaults: { 'name': 'Leonardo', 'city': 'Rome', 'phone': 12345 }
59
database: contactsDatabase
61
expression: [ "city" ]
73
title: i18n.tr("People living in Dublin")
75
anchors.centerIn: parent
80
delegate: ListItem.Subtitled {
82
subText: contents.city