editbox improvements

This commit is contained in:
erinn 2019-09-20 14:25:09 -07:00 committed by Gogs
parent 4dd686476a
commit ab8153f042
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ import QtQuick.Layouts 1.3
Item {
id: root
height: lbl.visible ? lbl.height : txt.height + (gcd.os == "linux" ? btn.height + 3 : 0) //lbl.height
height: lbl.visible ? lbl.height : txt.height + (gcd.os == "android" ? btn.height + 3 : 0) //lbl.height
implicitHeight: height //lbl.height
property alias text: lbl.text
@ -40,7 +40,7 @@ Item {
onClicked: {
lbl.visible = img.visible = false
txt.visible = true
if (gcd.os == "linux") btn.visible = true
if (gcd.os == "android") btn.visible = true
txt.text = lbl.text
txt.selectAll()
txt.focus = true