ListSectionHeader
ListSectionHeader Class Reference
Inheritance diagram for ListSectionHeader:
Properties | |
alias | label |
Detailed Description
A section delegate for the primitive ListView component.
It's intended to make all listviews look coherent, mirroring the style of the Kirigami version, but with the separator line being an SVG from the Plasma theme rather than a simple line.
Any additional content items will be positioned in a row at the trailing side of this component.
Example usage:
import QtQuick
import org.kde.plasma.components as PlasmaComponents
import org.kde.plasma.extras as PlasmaExtras
ListView {
section.delegate: PlasmaExtras.ListSectionHeader {
label: section
PlasmaComponents.Button {
text: "Button 1"
}
PlasmaComponents.Button {
text: "Button 2"
}
}
}
Definition at line 42 of file ListSectionHeader.qml.
Property Documentation
◆ label
|
read |
This property sets the text of the ListView's section header.
Definition at line 48 of file ListSectionHeader.qml.
The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:10:41 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:10:41 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.