mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 07:58:59 +02:00
put keyboard on location dialog
This commit is contained in:
parent
123ac541ea
commit
e5b56fec7c
1 changed files with 35 additions and 3 deletions
|
@ -18,6 +18,9 @@ import "hifi/toolbars"
|
||||||
import "controls-uit" as HifiControls
|
import "controls-uit" as HifiControls
|
||||||
|
|
||||||
Window {
|
Window {
|
||||||
|
property bool keyboardRaised: true
|
||||||
|
property bool punctuationMode: false
|
||||||
|
|
||||||
id: root
|
id: root
|
||||||
HifiConstants { id: hifi }
|
HifiConstants { id: hifi }
|
||||||
|
|
||||||
|
@ -68,7 +71,7 @@ Window {
|
||||||
AddressBarDialog {
|
AddressBarDialog {
|
||||||
id: addressBarDialog
|
id: addressBarDialog
|
||||||
implicitWidth: backgroundImage.width
|
implicitWidth: backgroundImage.width
|
||||||
implicitHeight: backgroundImage.height
|
implicitHeight: backgroundImage.height + (keyboardRaised ? 200 : 0)
|
||||||
// The buttons have their button state changed on hover, so we have to manually fix them up here
|
// The buttons have their button state changed on hover, so we have to manually fix them up here
|
||||||
onBackEnabledChanged: backArrow.buttonState = addressBarDialog.backEnabled ? 1 : 0;
|
onBackEnabledChanged: backArrow.buttonState = addressBarDialog.backEnabled ? 1 : 0;
|
||||||
onForwardEnabledChanged: forwardArrow.buttonState = addressBarDialog.forwardEnabled ? 1 : 0;
|
onForwardEnabledChanged: forwardArrow.buttonState = addressBarDialog.forwardEnabled ? 1 : 0;
|
||||||
|
@ -217,8 +220,8 @@ Window {
|
||||||
}
|
}
|
||||||
|
|
||||||
Window {
|
Window {
|
||||||
width: 938;
|
width: 938
|
||||||
height: 625;
|
height: 625
|
||||||
scale: 0.8 // Reset scale of Window to 1.0 (counteract address bar's scale value of 1.25)
|
scale: 0.8 // Reset scale of Window to 1.0 (counteract address bar's scale value of 1.25)
|
||||||
HifiControls.WebView {
|
HifiControls.WebView {
|
||||||
anchors.fill: parent;
|
anchors.fill: parent;
|
||||||
|
@ -235,6 +238,35 @@ Window {
|
||||||
horizontalCenter: scroll.horizontalCenter;
|
horizontalCenter: scroll.horizontalCenter;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// virtual keyboard, letters
|
||||||
|
Keyboard {
|
||||||
|
id: keyboard1
|
||||||
|
y: keyboardRaised ? parent.height : 0
|
||||||
|
height: keyboardRaised ? 200 : 0
|
||||||
|
visible: keyboardRaised && !punctuationMode
|
||||||
|
enabled: keyboardRaised && !punctuationMode
|
||||||
|
anchors.right: parent.right
|
||||||
|
anchors.rightMargin: 0
|
||||||
|
anchors.left: parent.left
|
||||||
|
anchors.leftMargin: 0
|
||||||
|
anchors.bottom: parent.bottom
|
||||||
|
anchors.bottomMargin: 0
|
||||||
|
}
|
||||||
|
|
||||||
|
KeyboardPunctuation {
|
||||||
|
id: keyboard2
|
||||||
|
y: keyboardRaised ? parent.height : 0
|
||||||
|
height: keyboardRaised ? 200 : 0
|
||||||
|
visible: keyboardRaised && punctuationMode
|
||||||
|
enabled: keyboardRaised && punctuationMode
|
||||||
|
anchors.right: parent.right
|
||||||
|
anchors.rightMargin: 0
|
||||||
|
anchors.left: parent.left
|
||||||
|
anchors.leftMargin: 0
|
||||||
|
anchors.bottom: parent.bottom
|
||||||
|
anchors.bottomMargin: 0
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue