From 49e93564a780d8c1b8f5ad6d74a9deaebf70a9a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=8A=B2=E9=B9=8F?= Date: Tue, 25 May 2021 19:52:26 +0800 Subject: [PATCH] handle input mouse area --- doric-Qt/example/doric/resources/input.qml | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/doric-Qt/example/doric/resources/input.qml b/doric-Qt/example/doric/resources/input.qml index e6fd8a39..2eb622ab 100644 --- a/doric-Qt/example/doric/resources/input.qml +++ b/doric-Qt/example/doric/resources/input.qml @@ -5,8 +5,6 @@ import "util.mjs" as Util import "gravity.mjs" as Gravity TextArea { - property var wrapper - property var uuid: Util.uuidv4() property var tag: "Input" @@ -30,7 +28,7 @@ TextArea { } horizontalAlignment: TextInput.AlignLeft - verticalAlignment: TextInput.AlignVCenter + verticalAlignment: TextInput.AlignTop onTextAlignmentChanged: { let gravity = Gravity.enumerate() @@ -75,12 +73,4 @@ TextArea { onBorderColorChanged: { bg.border.color = borderColor } - - MouseArea { - anchors.fill: parent - onClicked: { - console.log(tag, uuid + " wrapper: " + wrapper) - mouseAreaBridge.onClick(wrapper) - } - } }