From a834f28eca57210657c74528712624073f4b7ef6 Mon Sep 17 00:00:00 2001 From: Brad Davis Date: Wed, 30 Dec 2015 17:14:03 -0800 Subject: [PATCH] Add a tag to the top level QML dialog so loaded content can manipulate it easily --- interface/resources/qml/QmlWindow.qml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/interface/resources/qml/QmlWindow.qml b/interface/resources/qml/QmlWindow.qml index 7b79b04343..951aa24471 100644 --- a/interface/resources/qml/QmlWindow.qml +++ b/interface/resources/qml/QmlWindow.qml @@ -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() }