Libplasma

DefaultListItemBackground.qml
1/*
2 SPDX-FileCopyrightText: 2016 Marco Martin <mart@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7import QtQuick
8//for Settings
9import QtQuick.Templates as T
10import org.kde.ksvg as KSvg
11import org.kde.kirigami as Kirigami
12
13KSvg.FrameSvgItem {
14 id: background
15
16 required property T.ItemDelegate control
17
18 imagePath: "widgets/listitem"
19 prefix: control.highlighted || control.down ? "pressed" : "normal"
20
21 visible: control.ListView.view ? control.ListView.view.highlight === null : true
22
24 imagePath: "widgets/listitem"
25 visible: !Kirigami.Settings.isMobile
26 prefix: "hover"
27 anchors.fill: parent
28 opacity: background.control.hovered && !background.control.down ? 1 : 0
29 }
30}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:01:35 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.