Warning, /maui/mauikit-filebrowsing/examples/TagsBar.qml is written in an unsupported language. File is not indexed.
0001 import QtQuick
0002 import QtCore
0003 import QtQuick.Controls
0004 import QtQuick.Layouts
0005 import org.mauikit.controls as Maui
0006 import org.mauikit.filebrowsing as FB
0007
0008 Maui.ApplicationWindow
0009 {
0010 id: root
0011
0012 Maui.SideBarView
0013 {
0014 anchors.fill: parent
0015
0016 sideBar.content: Pane
0017 {
0018 Maui.Theme.colorSet: Maui.Theme.Window
0019 anchors.fill: parent
0020
0021 FB.FileBrowser
0022 {
0023 id: _fileBrowser
0024 anchors.fill: parent
0025 currentPath: StandardPaths.writableLocation(StandardPaths.DownloadLocation)
0026 settings.viewType: FB.FMList.LIST_VIEW
0027 onItemClicked: (index) => _tagPreviewPage.fileItem = _fileBrowser.currentFMModel.get(index)
0028 }
0029 }
0030
0031 Maui.Page
0032 {
0033 id: _tagPreviewPage
0034 Maui.Controls.showCSD: true
0035 anchors.fill: parent
0036
0037 property var fileItem
0038
0039 Maui.Holder
0040 {
0041 anchors.fill: parent
0042 emojiSize: 100
0043 imageSource: _tagPreviewPage.fileItem.thumbnail
0044 title: _tagPreviewPage.fileItem.name
0045 }
0046
0047 footer: FB.TagsBar
0048 {
0049 list.strict: false
0050 list.urls: [_tagPreviewPage.fileItem.url]
0051 width: parent.width
0052
0053 onTagsEdited: (tags) => list.updateToUrls(tags)
0054 }
0055 }
0056 }
0057 }
0058