Kirigami2

ListSectionHeader.qml
1 /*
2  * SPDX-FileCopyrightText: 2019 Bj√∂rn Feber <[email protected]>
3  *
4  * SPDX-License-Identifier: LGPL-2.0-or-later
5  */
6 
7 import QtQuick 2.5
8 import QtQuick.Layouts 1.2
9 import QtQuick.Controls 2.4 as QQC2
10 import org.kde.kirigami 2.10
11 
42  id: listSection
43 
48  property alias label: listSection.text
49 
50  default property alias _contents: rowLayout.data
51 
52  backgroundColor: Theme.backgroundColor
53  Theme.inherit: false
54  Theme.colorSet: Theme.Window
55 
56  separatorVisible: false
57  sectionDelegate: true
58  hoverEnabled: false
59  supportsMouseEvents: false
60 
61  contentItem: RowLayout {
62  id: rowLayout
63 
64  Heading {
65  level: 3
66  text: listSection.text
67  Layout.fillWidth: rowLayout.children.length === 1
68  }
69  }
70 }
A heading label used for subsections of texts.
Definition: Heading.qml:37
An item delegate for the primitive ListView component.
QString label(StandardShortcut id)
A set of named colors for the application.
QChar * data()
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Wed Jan 27 2021 22:37:38 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.