HButton: add "uncheckable" property
This commit is contained in:
parent
370418bcf5
commit
e3b6f3eb54
|
@ -21,6 +21,7 @@ Button {
|
|||
property bool circle: false
|
||||
property bool padded: true
|
||||
property bool enableRadius: false
|
||||
property bool uncheckable: true
|
||||
|
||||
property HToolTip toolTip: HToolTip {
|
||||
id: toolTip
|
||||
|
@ -71,4 +72,9 @@ Button {
|
|||
when: disableWhileLoading && button.loading
|
||||
value: false
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
enabled: ! parent.uncheckable && parent.checked
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user