Warning, /maui/arca/src/controls/previewer/CompressedPreview.qml is written in an unsupported language. File is not indexed.
0001 import QtQuick 2.14 0002 import QtQuick.Controls 2.14 0003 0004 import org.mauikit.controls 1.0 as Maui 0005 0006 Maui.Page 0007 { 0008 id: control 0009 headBar.visible: false 0010 footBar.visible: true 0011 footBar.background: null 0012 0013 footBar.rightContent: Button 0014 { 0015 text: i18n("Extract") 0016 onClicked: 0017 { 0018 dialogLoader.sourceComponent= _extractDialogComponent 0019 dialog.open() 0020 _compressedFile.extract(browser.currentPath, dialogLoader.textEntry.text) 0021 } 0022 } 0023 0024 Component.onCompleted: 0025 { 0026 _compressedFile.url = currentUrl 0027 } 0028 0029 Maui.ListBrowser 0030 { 0031 id: _listView 0032 anchors.fill: parent 0033 model: Maui.BaseModel 0034 { 0035 list: _compressedFile.model 0036 } 0037 0038 delegate: Maui.ItemDelegate 0039 { 0040 height: Maui.Style.rowHeight* 1.5 0041 width: ListView.view.width 0042 0043 Maui.ListItemTemplate 0044 { 0045 anchors.fill: parent 0046 iconSource: model.icon 0047 iconSizeHint: Maui.Style.iconSizes.medium 0048 label1.text: model.label 0049 label2.text: model.date 0050 } 0051 } 0052 } 0053 }