handle input mouse area
This commit is contained in:
parent
715a20125c
commit
49e93564a7
@ -5,8 +5,6 @@ import "util.mjs" as Util
|
|||||||
import "gravity.mjs" as Gravity
|
import "gravity.mjs" as Gravity
|
||||||
|
|
||||||
TextArea {
|
TextArea {
|
||||||
property var wrapper
|
|
||||||
|
|
||||||
property var uuid: Util.uuidv4()
|
property var uuid: Util.uuidv4()
|
||||||
|
|
||||||
property var tag: "Input"
|
property var tag: "Input"
|
||||||
@ -30,7 +28,7 @@ TextArea {
|
|||||||
}
|
}
|
||||||
|
|
||||||
horizontalAlignment: TextInput.AlignLeft
|
horizontalAlignment: TextInput.AlignLeft
|
||||||
verticalAlignment: TextInput.AlignVCenter
|
verticalAlignment: TextInput.AlignTop
|
||||||
|
|
||||||
onTextAlignmentChanged: {
|
onTextAlignmentChanged: {
|
||||||
let gravity = Gravity.enumerate()
|
let gravity = Gravity.enumerate()
|
||||||
@ -75,12 +73,4 @@ TextArea {
|
|||||||
onBorderColorChanged: {
|
onBorderColorChanged: {
|
||||||
bg.border.color = borderColor
|
bg.border.color = borderColor
|
||||||
}
|
}
|
||||||
|
|
||||||
MouseArea {
|
|
||||||
anchors.fill: parent
|
|
||||||
onClicked: {
|
|
||||||
console.log(tag, uuid + " wrapper: " + wrapper)
|
|
||||||
mouseAreaBridge.onClick(wrapper)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user