Dekko
Loading...
Searching...
No Matches
MessageDetailsPopover.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 Lomiri.Components.Popups 1.3
22import Dekko.Mail 1.0
23import Dekko.Controls 1.0
24import Dekko.Lomiri.Components 1.0
25import "../messageview"
26
27Popover {
28 id: info
29 property var message
30
31// contentWidth: units.gu(35)
32 contentHeight: units.gu(30)
33 Rectangle {
34 anchors.fill: parent
35 color: Suru.secondaryBackgroundColor
36 }
37
38 Column {
39 anchors {
40 left: parent.left
41 top: parent.top
42 right: parent.right
43 }
44
45 Item {
46 id: internal
47 width: parent.width
48 height: info.height
49
50 StackView {
51 id: detailStack
52 anchors.fill: parent// make sure our stack takes the full size
53 initialItem: DetailList {
54 property int currentHeight: internalHeight
55 width: detailStack.width
56 height: detailStack.height
57 message: info.message
58 }
59 }
60 }
61 }
62}
63