Warning, /maui/vvave/src/widgets/BabeTable/TableDelegate.qml is written in an unsupported language. File is not indexed.
0001 import QtQuick 2.10 0002 import QtQuick.Controls 2.15 0003 import QtQuick.Layouts 1.3 0004 0005 import org.mauikit.controls 1.0 as Maui 0006 0007 Maui.ListBrowserDelegate 0008 { 0009 id: control 0010 0011 property bool number : false 0012 property bool coverArt : false 0013 0014 readonly property string artist : model.artist 0015 readonly property string album : model.album 0016 readonly property string title : model.title 0017 readonly property url url : model.url 0018 readonly property int track : model.track 0019 0020 property bool sameAlbum : false 0021 property bool appendButton : false 0022 0023 signal appendClicked() 0024 0025 maskRadius: Maui.Style.radiusV 0026 0027 isCurrentItem: ListView.isCurrentItem || checked 0028 draggable: true 0029 iconSource: "media-album-cover" 0030 0031 template.isMask: true 0032 0033 label1.text: control.number ? control.track + ". " + control.title : control.title 0034 label2.text: control.artist + " | " + control.album 0035 label2.visible: control.coverArt ? !control.sameAlbum : true 0036 0037 iconVisible: !control.sameAlbum && control.coverArt 0038 imageSource: coverArt ? "image://artwork/album:"+ control.artist+":"+control.album : "" 0039 0040 ToolButton 0041 { 0042 visible: control.appendButton 0043 icon.name: "list-add" 0044 onClicked: control.appendClicked() 0045 icon.color: delegate.label1.color 0046 flat: true 0047 0048 opacity: delegate.hovered ? 0.8 : 0.6 0049 } 0050 }