From ab8153f042947f2bcd5bcaa9ea0d2eebe590e0fb Mon Sep 17 00:00:00 2001 From: erinn Date: Fri, 20 Sep 2019 14:25:09 -0700 Subject: [PATCH] editbox improvements --- qml/widgets/InplaceEditText.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qml/widgets/InplaceEditText.qml b/qml/widgets/InplaceEditText.qml index 5c945b85..031ac798 100644 --- a/qml/widgets/InplaceEditText.qml +++ b/qml/widgets/InplaceEditText.qml @@ -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