Kirigami2

styles/Material/AbstractListItem.qml
1 /*
2  * SPDX-FileCopyrightText: 2016 Marco Martin <[email protected]>
3  *
4  * SPDX-License-Identifier: LGPL-2.0-or-later
5  */
6 
7 import QtQuick 2.7
8 import org.kde.kirigami 2.4 as Kirigami
9 import QtQuick.Controls.Material 2.1 as Mat
10 import QtQuick.Controls.Material.impl 2.1 as MatImp
11 import "../../private" as P
12 import "../../templates" as T
13 
14 T.AbstractListItem {
15  id: listItem
16 
17  background: P.DefaultListItemBackground {
18 
19  MatImp.Ripple {
20  anchors.fill: parent
21  clip: visible
22  visible: listItem.supportsMouseEvents
23  pressed: listItem.pressed
24  anchor: listItem
25  active: listItem.down || listItem.visualFocus
26  color: Qt.rgba(0,0,0,0.2)
27  }
28  }
29  implicitHeight: contentItem.implicitHeight + Kirigami.Units.smallSpacing * 6
30 }
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Jan 29 2023 04:11:03 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.