Warning, /maui/mauikit-filebrowsing/examples/TagsDialog.qml is written in an unsupported language. File is not indexed.
0001 import QtQuick 0002 import QtCore 0003 import QtQuick.Controls 0004 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.Page 0013 { 0014 id: _tagPreviewPage 0015 Maui.Controls.showCSD: true 0016 anchors.fill: parent 0017 0018 title: "Add tags to a file" 0019 0020 FB.FileBrowser 0021 { 0022 id: _fileBrowser 0023 anchors.fill: parent 0024 currentPath: StandardPaths.writableLocation(StandardPaths.DownloadLocation) 0025 settings.viewType: FB.FMList.LIST_VIEW 0026 onItemClicked: (index) => 0027 { 0028 _tagsDialog.composerList.urls = [_fileBrowser.currentFMModel.get(index).url] 0029 _tagsDialog.open() 0030 } 0031 } 0032 0033 FB.TagsDialog 0034 { 0035 id: _tagsDialog 0036 composerList.strict: false //Show all the associated tags to the file 0037 onTagsReady: (tags) => console.log(tags) 0038 } 0039 } 0040 0041 } 0042