Libplasma
ButtonContent.qml
20 readonly property bool usingFocusBackground: !button.flat && buttonSvg.hasElement("hint-focus-highlighted-background") && button.visualFocus && !(button.pressed || button.checked)
21 readonly property int defaultIconSize: button.flat ? Kirigami.Units.iconSizes.smallMedium : Kirigami.Units.iconSizes.small
24 readonly property bool iconVisible: icon.source.toString() !== "" && button.display !== T.Button.TextOnly
25 readonly property bool labelVisible: labelText !== "" && root.button.display !== T.Button.IconOnly
27 spacing: button.spacing
30 Layout.fillWidth: true
48 Layout.maximumWidth: root.button.icon.width > 0 ? root.button.icon.width : Number.POSITIVE_INFINITY
49 Layout.maximumHeight: root.button.icon.height > 0 ? root.button.icon.height : Number.POSITIVE_INFINITY
65 color: root.usingFocusBackground ? Kirigami.Theme.highlightedTextColor : Kirigami.Theme.textColor
66 horizontalAlignment: root.button.display !== T.Button.TextUnderIcon && root.iconVisible ? Text.AlignLeft : Text.AlignHCenter
bool usingFocusBackground
Definition ButtonContent.qml:21
bool labelVisible
Definition ButtonContent.qml:30
bool iconVisible
Definition ButtonContent.qml:27
int defaultIconSize
Definition ButtonContent.qml:24
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:48:23 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:48:23 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.