~boiko/history-service/rtm-remove_obsolete_tools

« back to all changes in this revision

Viewing changes to tools/qmlclient/items.qml

  • Committer: Gustavo Pichorim Boiko
  • Date: 2015-01-21 17:19:22 UTC
  • Revision ID: gustavo.boiko@canonical.com-20150121171922-33hpei8lqrdt4chd
Remove the tools and their dependencies: they are obsolete and not useful anymore.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright (C) 2013 Canonical, Ltd.
3
 
 *
4
 
 * Authors:
5
 
 *  Gustavo Pichorim Boiko <gustavo.boiko@canonical.com>
6
 
 *
7
 
 * This file is part of history-service.
8
 
 *
9
 
 * history-service 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.
12
 
 *
13
 
 * history-service 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.
17
 
 *
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/>.
20
 
 */
21
 
 
22
 
import QtQuick 2.0
23
 
import Ubuntu.History 0.1
24
 
 
25
 
ListView {
26
 
    id: listView
27
 
 
28
 
    width: 600
29
 
    height: 800
30
 
 
31
 
    model: HistoryEventModel {
32
 
        type: HistoryThreadModel.EventTypeText
33
 
        sort: HistorySort {
34
 
            sortField: "timestamp"
35
 
            sortOrder: HistorySort.DescendingOrder
36
 
        }
37
 
    }
38
 
 
39
 
    delegate: Rectangle {
40
 
        anchors.left: parent.left
41
 
        anchors.right: parent.right
42
 
        height: 100
43
 
        border.color: "black"
44
 
        color: "lightGray"
45
 
 
46
 
        Column {
47
 
            anchors.fill: parent
48
 
            anchors.margins: 3
49
 
            spacing: 3
50
 
 
51
 
            Text {
52
 
                anchors.left: parent.left
53
 
                text: "<b>Participants:</b> " + participants
54
 
            }
55
 
            Text {
56
 
                anchors.left: parent.left
57
 
                text: "<b>AccountId:</b> " + accountId
58
 
            }
59
 
            Text {
60
 
                anchors.left: parent.left
61
 
                text: "<b>ThreadId:</b> " + threadId
62
 
            }
63
 
            Text {
64
 
                anchors.left: parent.left
65
 
                text: "<b>Sender:</b> " + senderId
66
 
            }
67
 
            Text {
68
 
                anchors.left: parent.left
69
 
                text: "<b>Message:</b> " + textMessage
70
 
            }
71
 
        }
72
 
    }
73
 
}