editbox improvements
This commit is contained in:
parent
4dd686476a
commit
ab8153f042
|
@ -7,7 +7,7 @@ import QtQuick.Layouts 1.3
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: root
|
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
|
implicitHeight: height //lbl.height
|
||||||
|
|
||||||
property alias text: lbl.text
|
property alias text: lbl.text
|
||||||
|
@ -40,7 +40,7 @@ Item {
|
||||||
onClicked: {
|
onClicked: {
|
||||||
lbl.visible = img.visible = false
|
lbl.visible = img.visible = false
|
||||||
txt.visible = true
|
txt.visible = true
|
||||||
if (gcd.os == "linux") btn.visible = true
|
if (gcd.os == "android") btn.visible = true
|
||||||
txt.text = lbl.text
|
txt.text = lbl.text
|
||||||
txt.selectAll()
|
txt.selectAll()
|
||||||
txt.focus = true
|
txt.focus = true
|
||||||
|
|
Reference in New Issue