src/app/qml/dialogs/ConfirmExtractDialog.qml
raw| 1 | import QtQuick 2.4 |
| 2 | import Lomiri.Components 1.3 |
| 3 | import Lomiri.Components.Popups 1.3 |
| 4 | |
| 5 | import "templates" |
| 6 | |
| 7 | ConfirmDialog { |
| 8 | id: rootItem |
| 9 | |
| 10 | property string filePath |
| 11 | property string fileName |
| 12 | property string archiveType |
| 13 | property var folderModel |
| 14 | |
| 15 | title: i18n.tr("Extract Archive") |
| 16 | text: i18n.tr("Are you sure you want to extract '%1' here?").arg(fileName) |
| 17 | |
| 18 | onAccepted: { |
| 19 | folderModel.extractArchive(filePath, fileName, archiveType) |
| 20 | } |
| 21 | } |