Warning, /network/angelfish/lib/contents/ui/DownloadQuestion.qml is written in an unsupported language. File is not indexed.

0001 // SPDX-FileCopyrightText: 2020 Jonah BrĂ¼chert <jbb@kaidan.im>
0002 //
0003 // SPDX-License-Identifier: GPL-2.0-or-later
0004 
0005 import QtQuick 2.0
0006 import org.kde.kirigami 2.4 as Kirigami
0007 
0008 import QtWebEngine 1.1
0009 
0010 Kirigami.InlineMessage {
0011     id: downloadQuestion
0012     text: i18n("Do you want to download this file?")
0013     showCloseButton: false
0014 
0015     property WebEngineDownloadItem download
0016 
0017     actions: [
0018         Kirigami.Action {
0019             iconName: "download"
0020             text: i18n("Download")
0021             onTriggered: {
0022                 downloadQuestion.download.resume()
0023                 downloadQuestion.visible = false
0024             }
0025         },
0026         Kirigami.Action {
0027             icon.name: "dialog-cancel"
0028             text: i18n("Cancel")
0029             onTriggered: {
0030                 downloadQuestion.download.cancel()
0031                 downloadQuestion.visible = false
0032             }
0033         }
0034     ]
0035 }