Changeset View
Changeset View
Standalone View
Standalone View
src/controls/LinkButton.qml
Show All 31 Lines | |||||
32 | * @since 5.52 | 32 | * @since 5.52 | ||
33 | * @since org.kde.kirigami 2.6 | 33 | * @since org.kde.kirigami 2.6 | ||
34 | */ | 34 | */ | ||
35 | QQC2.Label { | 35 | QQC2.Label { | ||
36 | id: control | 36 | id: control | ||
37 | 37 | | |||
38 | property Action action: null | 38 | property Action action: null | ||
39 | property alias acceptedButtons: area.acceptedButtons | 39 | property alias acceptedButtons: area.acceptedButtons | ||
40 | property alias mouseArea: area | ||||
40 | Accessible.role: Accessible.Button | 41 | Accessible.role: Accessible.Button | ||
41 | Accessible.name: text | 42 | Accessible.name: text | ||
42 | Accessible.onPressAction: control.clicked(null) | 43 | Accessible.onPressAction: control.clicked(null) | ||
43 | 44 | | |||
44 | text: action ? action.text : "" | 45 | text: action ? action.text : "" | ||
45 | enabled: !action || action.enabled | 46 | enabled: !action || action.enabled | ||
46 | onClicked: if (action) action.trigger() | 47 | onClicked: if (action) action.trigger() | ||
47 | 48 | | |||
Show All 18 Lines |