9import QtQuick.Templates as T
10import org.kde.kirigami as Kirigami
11import "private" as Private
16 implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
17 implicitContentWidth + leftPadding + rightPadding)
18 implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
19 implicitContentHeight + topPadding + bottomPadding)
21 topPadding: (background as Private.ButtonBackground)?.topMargin ?? undefined
22 leftPadding: (background as Private.ButtonBackground)?.leftMargin ?? undefined
23 rightPadding: (background as Private.ButtonBackground)?.rightMargin ?? undefined
24 bottomPadding: (background as Private.ButtonBackground)?.bottomMargin ?? undefined
28 hoverEnabled: !
Kirigami.Settings.tabletMode
30 Accessible.onPressAction: clicked()
32 Kirigami.MnemonicData.enabled: control.enabled && control.visible
34 Kirigami.MnemonicData.label: control.text
41 enabled: !(RegExp(/\&[^\&]/).test(control.text))
42 sequence: control.Kirigami.MnemonicData.sequence
43 onActivated: control.clicked()
51 contentItem: Private.ButtonContent {
52 labelText: control.Kirigami.MnemonicData.richTextLabel
56 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.