8import org.kde.kirigami as Kirigami
13 height: Kirigami.Units.iconSizes.smallMedium
14 property Kirigami.OverlayDrawer drawer
15 property color color: Kirigami.Theme.textColor
19 LayoutMirroring.enabled: false
20 LayoutMirroring.childrenInherit: true
25 margins: Kirigami.Units.smallSpacing
27 readonly property int thickness: 2
28 readonly property real drawerPosition: drawer ? drawer.position : 0
34 topMargin: -iconRoot.thickness/2 * iconRoot.drawerPosition
36 antialiasing: iconRoot.drawerPosition !== 0
37 transformOrigin: Item.Right
38 width: (1 - iconRoot.drawerPosition) * parent.width + iconRoot.drawerPosition * (Math.sqrt(2*(parent.width*parent.width)))
39 height: iconRoot.thickness
41 rotation: -45 * iconRoot.drawerPosition
45 anchors.centerIn: parent
46 width: parent.width - parent.width * iconRoot.drawerPosition
47 height: iconRoot.thickness
55 bottomMargin: -iconRoot.thickness/2 * iconRoot.drawerPosition
57 antialiasing: iconRoot.drawerPosition !== 0
58 transformOrigin: Item.Right
59 width: (1 - iconRoot.drawerPosition) * parent.width + iconRoot.drawerPosition * (Math.sqrt(2*(parent.width*parent.width)))
60 height: iconRoot.thickness
62 rotation: 45 * iconRoot.drawerPosition
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:20 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.