Kirigami-addons

ListCellDelegate.qml
1/*
2 * Copyright 2023 Evgeny Chesnokov <echesnokov@astralinux.ru>
3 * SPDX-License-Identifier: LGPL-2.0-or-later
4 */
5
6import QtQuick
7import QtQuick.Controls as QQC2
8import QtQuick.Layouts
9
10import org.kde.kirigami as Kirigami
11
12QQC2.Control {
13 id: delegate
14
15 Accessible.role: Accessible.Cell
16 hoverEnabled: false
17
18 required property int index
19 required property var model
20
21 // Reference for current entry of root.model
22 property var entry
23 property int rowIndex
24
25 contentItem: Loader {
26 sourceComponent: delegate.model.headerComponent.itemDelegate
27 readonly property var modelData: delegate.entry[delegate.model.headerComponent.textRole]
28 readonly property var model: delegate.entry
29 readonly property int row: delegate.rowIndex
30 readonly property int column: delegate.index
31 }
32}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:33:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.