6pragma ComponentBehavior: Bound
9import QtQuick.Templates as T
10import org.kde.kirigami as Kirigami
15 required property T.Button button
18 property real topMargin: loader.item.topMargin
19 property real leftMargin: loader.item.leftMargin
20 property real rightMargin: loader.item.rightMargin
21 property real bottomMargin: loader.item.bottomMargin
23 implicitWidth: Kirigami.Units.gridUnit + root.leftMargin + root.rightMargin
24 implicitHeight: Kirigami.Units.gridUnit + root.topMargin + root.bottomMargin
26 opacity: enabled ? 1 : 0.5
27 layer.enabled: opacity < 1
32 sourceComponent: root.button.flat ? flatButtonBackground : raisedButtonBackground
36 id: flatButtonBackground
37 FlatButtonBackground {
39 hovered: root.button.hovered
40 pressed: root.button.down
41 checked: root.button.checked
42 focused: root.button.visualFocus
47 id: raisedButtonBackground
48 RaisedButtonBackground {
50 hovered: root.button.hovered
51 pressed: root.button.down
52 checked: root.button.checked
53 focused: root.button.visualFocus
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.