mirror of
https://github.com/lubosz/overte.git
synced 2025-04-08 21:42:24 +02:00
Merge pull request #13353 from vladest/address_dialog_focus_fix
Remove extra textfield fro address bar input
This commit is contained in:
commit
c0e1e9c23a
1 changed files with 14 additions and 15 deletions
|
@ -89,6 +89,7 @@ StackView {
|
|||
|
||||
property bool keyboardEnabled: false
|
||||
property bool punctuationMode: false
|
||||
property bool keyboardRaised: false
|
||||
|
||||
width: parent.width
|
||||
height: parent.height
|
||||
|
@ -210,6 +211,8 @@ StackView {
|
|||
|
||||
QQC2.TextField {
|
||||
id: addressLine
|
||||
|
||||
focus: true
|
||||
width: addressLineContainer.width - addressLineContainer.anchors.leftMargin - addressLineContainer.anchors.rightMargin;
|
||||
anchors {
|
||||
left: addressLineContainer.left;
|
||||
|
@ -236,24 +239,20 @@ StackView {
|
|||
color: hifi.colors.text
|
||||
background: Item {}
|
||||
|
||||
QQC2.Label {
|
||||
T.TextField {
|
||||
id: control
|
||||
}
|
||||
|
||||
padding: 6 // numbers taken from Qt\5.9.2\Src\qtquickcontrols2\src\imports\controls\TextField.qml
|
||||
leftPadding: padding + 4
|
||||
}
|
||||
QQC2.Label {
|
||||
font: addressLine.font
|
||||
|
||||
font: parent.font
|
||||
x: addressLine.x
|
||||
y: addressLine.y
|
||||
leftPadding: addressLine.leftPadding
|
||||
topPadding: addressLine.topPadding
|
||||
|
||||
x: control.leftPadding
|
||||
y: control.topPadding
|
||||
|
||||
text: parent.placeholderText2
|
||||
verticalAlignment: "AlignVCenter"
|
||||
color: 'gray'
|
||||
visible: parent.text === ''
|
||||
}
|
||||
text: addressLine.placeholderText2
|
||||
verticalAlignment: "AlignVCenter"
|
||||
color: 'gray'
|
||||
visible: addressLine.text === ''
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
|
|
Loading…
Reference in a new issue