Use AutoTextField.

Fix #81.
This commit is contained in:
Black Hat
2018-10-16 08:16:54 +08:00
parent bead3ed36b
commit a8b159b98a
15 changed files with 67 additions and 43 deletions

View File

@@ -63,12 +63,11 @@ Drawer {
RowLayout {
Layout.fillWidth: true
TextField {
AutoTextField {
Layout.fillWidth: true
id: roomNameField
text: room && room.name ? room.name : ""
selectByMouse: true
}
ItemDelegate {
@@ -84,13 +83,12 @@ Drawer {
RowLayout {
Layout.fillWidth: true
TextField {
AutoTextField {
Layout.fillWidth: true
id: roomTopicField
text: room && room.topic ? room.topic : ""
selectByMouse: true
}
ItemDelegate {
@@ -196,7 +194,7 @@ Drawer {
modal: true
standardButtons: Dialog.Ok | Dialog.Cancel
contentItem: TextField {
contentItem: AutoTextField {
id: inviteUserDialogTextField
placeholderText: "@bot:matrix.org"
}