Fix small warning with NTextBox
This commit is contained in:
parent
880d6610fe
commit
ea22af05d1
11 changed files with 32 additions and 4 deletions
|
|
@ -14,7 +14,6 @@ Item {
|
|||
property bool readOnly: false
|
||||
property bool enabled: true
|
||||
property var onEditingFinished: function () {}
|
||||
property var onTextChanged: function (value) {}
|
||||
|
||||
// Sizing
|
||||
implicitHeight: Style.baseWidgetSize * 1.25 * scaling
|
||||
|
|
@ -58,7 +57,8 @@ Item {
|
|||
background: null
|
||||
font.pointSize: Colors.fontSizeSmall * scaling
|
||||
onEditingFinished: root.onEditingFinished()
|
||||
onTextChanged: root.onTextChanged(text)
|
||||
// Text changes are observable via the aliased 'text' property (root.text) and its 'textChanged' signal.
|
||||
// No additional callback is invoked here to avoid conflicts with QML's onTextChanged handler semantics.
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue