Clean up field types
This commit is contained in:
parent
8d44150598
commit
54bb1c1c2b
3 changed files with 40 additions and 45 deletions
|
@ -24,7 +24,6 @@ Label {
|
|||
id: popup
|
||||
|
||||
width: parent.width
|
||||
height: input.height
|
||||
padding: 0
|
||||
|
||||
onOpened: {
|
||||
|
@ -35,15 +34,13 @@ Label {
|
|||
TextArea {
|
||||
id: input
|
||||
|
||||
anchors.fill: parent
|
||||
padding: 2
|
||||
topPadding: 0
|
||||
bottomPadding: 0
|
||||
width: parent.width
|
||||
wrapMode: TextEdit.Wrap
|
||||
|
||||
Keys.onPressed: {
|
||||
if (event.modifiers === Qt.NoModifier) {
|
||||
if (event.key === Qt.Key_Return || event.key === Qt.Key_Enter) {
|
||||
if (event.key === Qt.Key_Return || event.key === Qt.Key_Enter) {
|
||||
if (event.modifiers === Qt.NoModifier) {
|
||||
value = input.text.trim()
|
||||
popup.close()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue