components android focus workaround

This commit is contained in:
Jaquee
2017-08-08 10:37:52 +02:00
parent b6f268d3a5
commit f605793cfc
2 changed files with 17 additions and 4 deletions

View File

@@ -38,6 +38,13 @@ Rectangle {
property var under: null
signal clicked()
function doClick() {
// Android workaround
releaseFocus();
clicked();
}
function getOffset() {
var offset = 0
var item = button
@@ -139,7 +146,7 @@ Rectangle {
onClicked: {
if(parent.checked)
return
button.clicked()
button.doClick()
parent.checked = true
}
}