Added IBeam cursor to line edit
This commit is contained in:
@@ -62,10 +62,12 @@ Item {
|
|||||||
|
|
||||||
id: lineEditRoot
|
id: lineEditRoot
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout
|
||||||
|
{
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
Rectangle {
|
Rectangle
|
||||||
|
{
|
||||||
id: lineEditBackground
|
id: lineEditBackground
|
||||||
|
|
||||||
border.color: lineEditRoot.border.color
|
border.color: lineEditRoot.border.color
|
||||||
@@ -87,7 +89,8 @@ Item {
|
|||||||
topLeftRadius: lineEditRoot.radius.topLeft
|
topLeftRadius: lineEditRoot.radius.topLeft
|
||||||
topRightRadius: lineEditRoot.radius.topRight
|
topRightRadius: lineEditRoot.radius.topRight
|
||||||
|
|
||||||
TextInput {
|
TextInput
|
||||||
|
{
|
||||||
id: lineEditInput
|
id: lineEditInput
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
color: lineEditRoot.color
|
color: lineEditRoot.color
|
||||||
@@ -101,6 +104,14 @@ Item {
|
|||||||
onAccepted: () => lineEditRoot.accepted()
|
onAccepted: () => lineEditRoot.accepted()
|
||||||
onTextChanged: () => lineEditRoot.text = lineEditInput.text
|
onTextChanged: () => lineEditRoot.text = lineEditInput.text
|
||||||
onEditingFinished: () => lineEditRoot.editingFinished()
|
onEditingFinished: () => lineEditRoot.editingFinished()
|
||||||
|
|
||||||
|
MouseArea
|
||||||
|
{
|
||||||
|
anchors.fill: parent
|
||||||
|
cursorShape: Qt.IBeamCursor
|
||||||
|
|
||||||
|
onClicked: () => lineEditInput.focus = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
states: [
|
states: [
|
||||||
|
|||||||
Reference in New Issue
Block a user