9import QtQuick.Templates as T
10import org.kde.kirigami as Kirigami
11import "private" as Private
13import org.kde.plasma.core as PlasmaCore
18 implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
19 implicitContentWidth + leftPadding + rightPadding)
20 implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
21 implicitContentHeight + topPadding + bottomPadding)
23 topPadding: (background as Private.ButtonBackground)?.topMargin ?? undefined
24 leftPadding: (background as Private.ButtonBackground)?.leftMargin ?? undefined
25 rightPadding: (background as Private.ButtonBackground)?.rightMargin ?? undefined
26 bottomPadding: (background as Private.ButtonBackground)?.bottomMargin ?? undefined
28 spacing: Kirigami.Units.smallSpacing
30 hoverEnabled: !Kirigami.Settings.tabletMode
32 Kirigami.MnemonicData.enabled: control.enabled && control.visible
33 Kirigami.MnemonicData.controlType: Kirigami.MnemonicData.SecondaryControl
34 Kirigami.MnemonicData.label: control.text
38 enabled: !(RegExp(/\&[^\&]/).test(control.text))
39 sequence: control.Kirigami.MnemonicData.sequence
40 onActivated: control.clicked()
43 Kirigami.Theme.inherit: flat
44 Kirigami.Theme.colorSet: Kirigami.Theme.Button
46 contentItem: Private.ButtonContent {
47 labelText: control.Kirigami.MnemonicData.richTextLabel
51 background: Private.ButtonBackground {
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:34:35 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.