mirror of
https://github.com/QuasarApp/QtAndroidTools.git
synced 2025-05-12 12:09:35 +00:00
39 lines
955 B
QML
39 lines
955 B
QML
|
import QtQuick 2.12
|
||
|
import QtQuick.Controls 2.12
|
||
|
import QtQuick.Dialogs 1.3
|
||
|
import QtAndroidTools 1.0
|
||
|
|
||
|
Page {
|
||
|
id: page
|
||
|
padding: 40
|
||
|
|
||
|
Column {
|
||
|
width: parent.width * 0.9
|
||
|
height: parent.height * 0.9
|
||
|
anchors.centerIn: parent
|
||
|
spacing: 15
|
||
|
|
||
|
Label {
|
||
|
anchors.horizontalCenter: parent.horizontalCenter
|
||
|
font.pixelSize: 15
|
||
|
text: "Focus:"
|
||
|
}
|
||
|
Label {
|
||
|
anchors.horizontalCenter: parent.horizontalCenter
|
||
|
font.pixelSize: 15
|
||
|
text: QtAndroidAudio.focus ? "Yes" : "No"
|
||
|
}
|
||
|
|
||
|
Button {
|
||
|
anchors.horizontalCenter: parent.horizontalCenter
|
||
|
text: "requestFocus"
|
||
|
onClicked: QtAndroidAudio.requestFocus()
|
||
|
}
|
||
|
Button {
|
||
|
anchors.horizontalCenter: parent.horizontalCenter
|
||
|
text: "abandonFocus"
|
||
|
onClicked: QtAndroidAudio.abandonFocus()
|
||
|
}
|
||
|
}
|
||
|
}
|