7import QtQuick.Controls as QQC2
10import org.kde.kirigami as Kirigami
15 Accessible.role: Accessible.Row
20 required property var model
21 required property int index
23 property bool alternatingRows
25 background: Rectangle {
27 if (delegate.enabled) {
28 if (delegate.down || delegate.highlighted) {
29 return Kirigami.Theme.highlightColor
32 if (delegate.hovered && !Kirigami.Settings.isMobile) {
33 return Qt.alpha(Kirigami.Theme.hoverColor, 0.3)
37 if (delegate.alternatingRows && index % 2) {
38 return Kirigami.Theme.alternateBackgroundColor;
49 model: root.__columnModel
51 delegate: ListCellDelegate {
52 implicitWidth: root.__columnModel.get(index)?.headerComponent.width ?? 0
53 implicitHeight: root.__rowHeight
55 rowIndex: delegate.index
60 onClicked: delegate.forceActiveFocus()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:03:50 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.