21 import QtQuick.Layouts 1.0
22 import QtQuick.Controls 1.0 as Controls
23 import QtQuick.Controls.Private 1.0
24 import org.kde.kirigami 1.0
43 default property Item contentItem
51 property alias supportsMouseEvents: itemMouse.enabled
78 property bool checked:
false
85 property alias pressed: itemMouse.pressed
92 property alias containsMouse: itemMouse.containsMouse
99 property bool sectionDelegate:
false
106 property bool separatorVisible:
true
117 property Item background
127 property color textColor:
Theme.viewTextColor
134 property color backgroundColor:
Theme.viewBackgroundColor
144 property color activeTextColor:
Theme.highlightedTextColor
151 property color activeBackgroundColor:
Theme.highlightColor
153 implicitWidth: contentItem ? contentItem.childrenRect.width : 0
157 width: parent ? parent.width : implicitWidth
158 Layout.fillWidth:
true
160 opacity: enabled ? 1 : 0.6
162 height: visible ? implicitHeight : 0
164 onContentItemChanged: {
165 contentItem.parent = paddingItem;
168 Component.onCompleted: {
169 itemMouse.integrateBackground()
176 hoverEnabled: !Settings.isMobile
178 onClicked: listItem.clicked()
179 onPressAndHold: listItem.pressAndHold()
190 function integrateBackground() {
192 background.parent = itemMouse;
193 background.anchors.fill = itemMouse;
198 onBackgroundChanged: {
199 itemMouse.integrateBackground()
202 Accessible.role: Accessible.ListItem
int smallSpacing
units.smallSpacing is the amount of spacing that should be used around smaller UI elements...
This file is part of the KDE documentation.
Documentation copyright © 1996-2017 The KDE developers.
Generated on Fri Feb 17 2017 11:09:23 by
doxygen 1.8.6 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.