mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 11:45:36 +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 {
|
||||
id: root
|
||||
objectName: "topLevelWindow"
|
||||
HifiConstants { id: hifi }
|
||||
title: "QmlWindow"
|
||||
resizable: true
|
||||
|
@ -24,10 +25,6 @@ VrDialog {
|
|||
contentImplicitHeight: clientArea.implicitHeight
|
||||
property alias source: pageLoader.source
|
||||
|
||||
Keys.onPressed: {
|
||||
console.log("QmlWindow keypress")
|
||||
}
|
||||
|
||||
Item {
|
||||
id: clientArea
|
||||
implicitHeight: 600
|
||||
|
@ -44,9 +41,9 @@ VrDialog {
|
|||
objectName: "Loader"
|
||||
anchors.fill: parent
|
||||
focus: true
|
||||
property var dialog: root
|
||||
|
||||
onLoaded: {
|
||||
console.log("Loaded content")
|
||||
forceActiveFocus()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue