Dekko
Loading...
Searching...
No Matches
DetailList.qml
1/* Copyright (C) 2016 - 2017 Dan Chapman <dpniel@ubuntu.com>
2
3 This file is part of Dekko email client for Ubuntu devices
4
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public License as
7 published by the Free Software Foundation; either version 2 of
8 the License or (at your option) version 3
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17*/
18import QtQuick 2.4
19import QtQuick.Controls.Suru 2.2
20import Lomiri.Components 1.3
21import Dekko.Controls 1.0
22import Dekko.Mail 1.0
23import Dekko.Lomiri.Components 1.0
25DetailItem {
26 id: dl
27 property var message
28 internalHeight: col.height > units.gu(25) ? col.height : units.gu(25)
29 height: parent.height
30 width: parent.width
31 color: Suru.secondaryBackgroundColor
32 ScrollView {
33 anchors.fill: parent
34 Flickable {
35 anchors.fill: parent
36 contentHeight: col.height
37 Column {
38 id: col
39 anchors {
40 left: parent.left
41 top: parent.top
42 right: parent.right
43 }
44 ListItem {
45 height: units.gu(4)
46 Label {
47 anchors.centerIn: parent
48 text: qsTr("Details")
49 font.weight: Font.DemiBold
50 }
51 }
53 title: qsTr("To:")
54 message: dl.message
55 model: message.to
56 }
58 visible: message.cc.count
59 title: qsTr("Cc:")
60 message: dl.message
61 model: message.cc
62 }
63 }
64 }
65 }
66}
67