Warning, /pim/merkuro/src/mail/qml/desktopactions/openmbox.qml is written in an unsupported language. File is not indexed.

0001 // SPDX-FileCopyrightText: 2023 Carl Schwan <carl.schwan@gnupg.com>
0002 // SPDX-License-Identifier: LGPL-2.0-or-later
0003 
0004 import QtQuick
0005 import QtQuick.Layouts
0006 import QtQuick.Dialogs
0007 import org.kde.kirigami as Kirigami
0008 import org.kde.pim.mimetreeparser
0009 import org.kde.merkuro.mail.desktop
0010 
0011 Kirigami.ApplicationWindow {
0012     id: root
0013 
0014     readonly property Kirigami.Action openFileAction: Kirigami.Action {
0015         text: i18n("Open File")
0016         onTriggered: fileDialog.open()
0017     }
0018 
0019     FileDialog {
0020         id: fileDialog
0021         title: i18n("Choose file")
0022         onAccepted: messageHandler.open(fileUrl)
0023     }
0024 
0025     MessageHandler {
0026         id: messageHandler
0027         objectName: "MessageHandler"
0028         onMessageOpened: pageStack.currentItem.message = message
0029     }
0030 
0031     pageStack.initialPage: MailViewer {
0032     }
0033 }