10import org.kde.ksvg as KSvg
11import org.kde.kirigami as Kirigami
48 property bool hovered: ListView.view !== null || GridView.view !== null
53 property bool pressed: false
60 property alias marginHints: background.margins
67 property bool active: true
70 const view = ListView.view;
71 return view ? view.width - view.leftMargin - view.rightMargin : undefined;
79 opacity: highlight.active ? 1 : 0.6
81 imagePath:
"widgets/viewitem"
83 if (highlight.pressed) {
84 return highlight.hovered ?
'selected+hover' :
'selected';
87 return highlight.hovered ?
'hover' :
'normal';
91 enabled:
Kirigami.Units.veryShortDuration > 0
93 duration:
Kirigami.Units.veryShortDuration
94 easing.type: Easing.OutQuad
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
KDE's Doxygen guidelines are available online.