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

@@ -71,7 +71,7 @@ Page {
id: mainCol
TextField {
AutoTextField {
Layout.fillWidth: true
id: serverField
@@ -92,7 +92,7 @@ Page {
}
}
TextField {
AutoTextField {
Layout.fillWidth: true
id: usernameField
@@ -112,7 +112,7 @@ Page {
}
}
TextField {
AutoTextField {
Layout.fillWidth: true
id: passwordField

View File

@@ -2,4 +2,5 @@ import QtQuick 2.9
RoomForm {
roomListModel.onNewMessage: if (!window.active) spectralController.showMessage(roomName, content, icon)
roomListModel.onRoomAdded: if (room) room.getPreviousContent(5)
}

View File

@@ -83,11 +83,10 @@ Column {
Label {
text: "Homeserver:"
}
TextField {
AutoTextField {
Layout.fillWidth: true
text: connection.homeserver
selectByMouse: true
readOnly: true
}
}
@@ -100,11 +99,10 @@ Column {
Label {
text: "Device ID:"
}
TextField {
AutoTextField {
Layout.fillWidth: true
text: connection.deviceId
selectByMouse: true
readOnly: true
}
}
@@ -117,11 +115,10 @@ Column {
Label {
text: "Access Token:"
}
TextField {
AutoTextField {
Layout.fillWidth: true
text: connection.accessToken
selectByMouse: true
readOnly: true
}
}