8import QtQuick.Templates as T
9import org.kde.kirigami as Kirigami
26Kirigami.ShadowedRectangle {
32 required property T.Control control
34 readonly property bool _roundCorners: control.parent._roundCorners === true
35 readonly property bool _isFirst: _roundCorners && control.parent.children[0] === control
36 readonly property bool _isLast: _roundCorners && control.parent.children[control.parent.children.length - 1] === control
41 if (!control.enabled) {
43 }
else if (control.pressed) {
45 }
else if (control.visualFocus) {
47 }
else if (!
Kirigami.Settings.tabletMode && control.hovered) {
55 topLeftRadius: _isFirst ?
Kirigami.Units.smallSpacing : 0
56 topRightRadius: _isFirst ?
Kirigami.Units.smallSpacing : 0
57 bottomLeftRadius: _isLast ?
Kirigami.Units.smallSpacing : 0
58 bottomRightRadius: _isLast ?
Kirigami.Units.smallSpacing : 0
62 ColorAnimation { duration:
Kirigami.Units.shortDuration }
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:33:45 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.