mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 18:50:00 +02:00
Add a tag to the top level QML dialog so loaded content can manipulate it easily
This commit is contained in:
parent
af132e267f
commit
a834f28eca
1 changed files with 2 additions and 5 deletions
|
@ -10,6 +10,7 @@ import "styles"
|
||||||
|
|
||||||
VrDialog {
|
VrDialog {
|
||||||
id: root
|
id: root
|
||||||
|
objectName: "topLevelWindow"
|
||||||
HifiConstants { id: hifi }
|
HifiConstants { id: hifi }
|
||||||
title: "QmlWindow"
|
title: "QmlWindow"
|
||||||
resizable: true
|
resizable: true
|
||||||
|
@ -24,10 +25,6 @@ VrDialog {
|
||||||
contentImplicitHeight: clientArea.implicitHeight
|
contentImplicitHeight: clientArea.implicitHeight
|
||||||
property alias source: pageLoader.source
|
property alias source: pageLoader.source
|
||||||
|
|
||||||
Keys.onPressed: {
|
|
||||||
console.log("QmlWindow keypress")
|
|
||||||
}
|
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: clientArea
|
id: clientArea
|
||||||
implicitHeight: 600
|
implicitHeight: 600
|
||||||
|
@ -44,9 +41,9 @@ VrDialog {
|
||||||
objectName: "Loader"
|
objectName: "Loader"
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
focus: true
|
focus: true
|
||||||
|
property var dialog: root
|
||||||
|
|
||||||
onLoaded: {
|
onLoaded: {
|
||||||
console.log("Loaded content")
|
|
||||||
forceActiveFocus()
|
forceActiveFocus()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue