Plasma

DefaultListItemBackground.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.1
8 //for Settings
9 import org.kde.plasma.core 2.0 as PlasmaCore
10 import org.kde.kirigami 2.2 as Kirigami
11 
12 PlasmaCore.FrameSvgItem {
13  id: background
14 
15  imagePath: "widgets/listitem"
16  prefix: control.highlighted || control.pressed ? "pressed" : "normal"
17 
18  visible: control.ListView.view ? control.ListView.view.highlight === null : true
19 
20  PlasmaCore.FrameSvgItem {
21  imagePath: "widgets/listitem"
22  visible: !Kirigami.Settings.isMobile
23  prefix: "hover"
24  anchors.fill: parent
25  opacity: control.hovered && !control.pressed ? 1 : 0
26  }
27 }
28 
uint id
Applet id: is unique in the whole Plasma session and will never change across restarts.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Sep 26 2023 04:05:57 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.