Warning, /rolisteam/rolisteam/src/libraries/qml_views/rolistyle/ItemDelegate.qml is written in an unsupported language. File is not indexed.
0001 import QtQuick 2.15 0002 import QtQuick.Controls 2.15 0003 import QtQuick.Controls.impl 2.15 0004 import QtQuick.Templates 2.15 as T 0005 import Customization 1.0 0006 0007 T.ItemDelegate { 0008 id: control 0009 property QtObject style: Theme.styleSheet("Palette") 0010 0011 implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset, 0012 implicitContentWidth + leftPadding + rightPadding) 0013 implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset, 0014 implicitContentHeight + topPadding + bottomPadding, 0015 implicitIndicatorHeight + topPadding + bottomPadding) 0016 0017 padding: 12 0018 spacing: 8 0019 0020 icon.width: 24 0021 icon.height: 24 0022 icon.color: control.style.text 0023 0024 contentItem: IconLabel { 0025 spacing: control.spacing 0026 mirrored: control.mirrored 0027 display: control.display 0028 alignment: control.display === IconLabel.IconOnly || control.display === IconLabel.TextUnderIcon ? Qt.AlignCenter : Qt.AlignLeft 0029 0030 icon: control.icon 0031 text: control.text 0032 font: control.font 0033 color: control.highlighted ? control.style.highlightedText : control.style.text 0034 } 0035 0036 background: Rectangle { 0037 implicitWidth: 100 0038 implicitHeight: 30 0039 visible: control.down || control.highlighted || control.visualFocus 0040 color: control.highlighted ? control.style.highlight : Color.blend(control.down ? control.style.midlight : control.style.light, 0041 control.style.highlight, control.visualFocus ? 0.75 : 0.15) 0042 } 0043 }