editbox improvements
This commit is contained in:
parent
4dd686476a
commit
ab8153f042
|
@ -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
|
||||
|
|
Reference in New Issue