Merge PR #277: Work around QtVirtualKeyboard layering issues

This commit is contained in:
Jenkins nymea 2019-12-01 12:56:31 +01:00
commit f020e0d2f3
4 changed files with 19 additions and 0 deletions

View File

@ -415,8 +415,14 @@ ApplicationWindow {
}
// NOTE: If using a Dialog, make sure closePolicy does not contain Dialog.CloseOnPressOutside
// or the virtual keyboard will close when pressing it...
// https://bugreports.qt.io/browse/QTBUG-56918
KeyboardLoader {
id: keyboardRect
parent: app.overlay
z: 1
anchors { left: parent.left; bottom: parent.bottom; right: parent.right }
}
}

View File

@ -14,6 +14,13 @@ Dialog {
standardButtons: Dialog.Ok
MouseArea {
parent: app.overlay
anchors.fill: parent
z: -1
onPressed: mouse.accepted = true
}
header: Item {
implicitHeight: headerRow.height + app.margins * 2
implicitWidth: parent.width

View File

@ -119,6 +119,9 @@ Page {
MeaDialog {
title: qsTr("Groups for %1").arg(root.device.name)
headerIcon: "../images/view-grid-symbolic.svg"
// NOTE: If CloseOnPressOutside is active (default) it will break the QtVirtualKeyboard
// https://bugreports.qt.io/browse/QTBUG-56918
closePolicy: Popup.CloseOnEscape
RowLayout {
Layout.leftMargin: app.margins

View File

@ -206,6 +206,9 @@ Page {
y: app.margins
standardButtons: Dialog.Ok | Dialog.Cancel
// NOTE: If CloseOnPressOutside is active (default) it will break the QtVirtualKeyboard
// https://bugreports.qt.io/browse/QTBUG-56918
closePolicy: Popup.CloseOnEscape
TextField {
id: textField