Warning, /plasma-mobile/raven/src/contents/ui/mailpartview/MailPartView.qml is written in an unsupported language. File is not indexed.

0001 // SPDX-FileCopyrightText: 2021 Carl Schwan <carlschwan@kde.org>
0002 // SPDX-FileCopyrightText: 2016 Michael Bohlender <michael.bohlender@kdemail.net>
0003 // SPDX-License-Identifier: GPL-2.0-or-later
0004 
0005 import QtQuick 2.15
0006 import QtQuick.Layouts 1.15
0007 import org.kde.kirigami 2.14 as Kirigami
0008 import QtQuick.Controls 2.15 as Controls
0009 
0010 import org.kde.raven 1.0
0011 import org.kde.kitemmodels 1.0 as KItemModels
0012 
0013 ListView {
0014     id: root
0015 
0016     implicitHeight: contentHeight
0017     property var item
0018     property alias rootIndex: visualModel.rootIndex
0019     property alias searchString: visualModel.searchString
0020     property alias autoLoadImages: visualModel.autoLoadImages
0021     property var attachmentModel: messageParser.attachments
0022 
0023     interactive: false
0024     spacing: Kirigami.Units.smallSpacing
0025     model: MailPartModel {
0026         id: visualModel
0027         model: messageParser.parts
0028     }
0029     MessageParser {
0030         id: messageParser
0031         item: root.item
0032     }
0033 }