Warning, /plasma-mobile/raven/src/contents/ui/ConversationViewer.qml is written in an unsupported language. File is not indexed.
0001 // SPDX-FileCopyrightText: 2016 Michael Bohlender <michael.bohlender@kdemail.net> 0002 // SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0003 0004 import QtQuick 2.15 0005 import QtQuick.Layouts 1.15 0006 import QtQuick.Controls 2.15 as QQC2 0007 0008 import org.kde.raven 1.0 0009 import org.kde.kirigami 2.14 as Kirigami 0010 import org.kde.kitemmodels 1.0 as KItemModels 0011 0012 import './mailpartview' 0013 0014 Kirigami.ScrollablePage { 0015 id: root 0016 0017 property var item 0018 property var props 0019 0020 leftPadding: 0 0021 rightPadding: 0 0022 topPadding: 0 0023 bottomPadding: 0 0024 0025 contextualActions: [ 0026 Kirigami.Action { 0027 text: i18n("Move to trash") 0028 iconName: "albumfolder-user-trash" 0029 // TODO implement move to trash 0030 } 0031 ] 0032 0033 ColumnLayout { 0034 spacing: 0 0035 0036 QQC2.Label { 0037 Layout.leftMargin: Kirigami.Units.largeSpacing * 2 0038 Layout.rightMargin: Kirigami.Units.largeSpacing * 2 0039 Layout.topMargin: Kirigami.Units.gridUnit 0040 Layout.bottomMargin: Kirigami.Units.gridUnit 0041 Layout.fillWidth: true 0042 0043 text: props.title 0044 maximumLineCount: 2 0045 wrapMode: Text.Wrap 0046 elide: Text.ElideRIght 0047 0048 font.pointSize: Kirigami.Theme.defaultFont.pointSize * 1.2 0049 } 0050 0051 // TODO use repeater to see the full conversation 0052 MailViewer { 0053 Layout.bottomMargin: Kirigami.Units.gridUnit * 2 0054 Layout.fillWidth: true 0055 0056 item: root.item 0057 subject: props.title 0058 from: props.from 0059 to: props.to 0060 sender: props.sender 0061 dateTime: props.datetime 0062 } 0063 } 0064 }