From 44af3b43cc53437fe870bbbfff23f7e9b69f4f9a Mon Sep 17 00:00:00 2001 From: Seth Alves Date: Fri, 9 Sep 2016 17:02:11 -0700 Subject: [PATCH] fix property access --- interface/resources/qml/AddressBarDialog.qml | 23 ++++++++++---------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/interface/resources/qml/AddressBarDialog.qml b/interface/resources/qml/AddressBarDialog.qml index e743031465..f257999dd9 100644 --- a/interface/resources/qml/AddressBarDialog.qml +++ b/interface/resources/qml/AddressBarDialog.qml @@ -18,9 +18,6 @@ import "hifi/toolbars" import "controls-uit" as HifiControls Window { - property bool keyboardRaised: false - property bool punctuationMode: false - id: root HifiConstants { id: hifi } @@ -71,6 +68,10 @@ Window { AddressBarDialog { id: addressBarDialog objectName: "AddressBarDialogDialog" + + property bool keyboardRaised: false + property bool punctuationMode: false + implicitWidth: backgroundImage.width implicitHeight: backgroundImage.height + (keyboardRaised ? 200 : 0) // The buttons have their button state changed on hover, so we have to manually fix them up here @@ -245,10 +246,10 @@ Window { // virtual keyboard, letters Keyboard { id: keyboard1 - y: keyboardRaised ? parent.height : 0 - height: keyboardRaised ? 200 : 0 - visible: keyboardRaised && !punctuationMode - enabled: keyboardRaised && !punctuationMode + y: parent.keyboardRaised ? parent.height : 0 + height: parent.keyboardRaised ? 200 : 0 + visible: parent.keyboardRaised && !parent.punctuationMode + enabled: parent.keyboardRaised && !parent.punctuationMode anchors.right: parent.right anchors.rightMargin: 0 anchors.left: parent.left @@ -259,10 +260,10 @@ Window { KeyboardPunctuation { id: keyboard2 - y: keyboardRaised ? parent.height : 0 - height: keyboardRaised ? 200 : 0 - visible: keyboardRaised && punctuationMode - enabled: keyboardRaised && punctuationMode + y: parent.keyboardRaised ? parent.height : 0 + height: parent.keyboardRaised ? 200 : 0 + visible: parent.keyboardRaised && parent.punctuationMode + enabled: parent.keyboardRaised && parent.punctuationMode anchors.right: parent.right anchors.rightMargin: 0 anchors.left: parent.left