Use a text area instead of field for room topic

This commit is contained in:
miruka
2020-06-02 21:50:47 -04:00
parent 76f0c5626f
commit 6772f14c24
4 changed files with 13 additions and 12 deletions

View File

@@ -38,7 +38,7 @@ HBox {
}
nameField.item.reset()
topicField.item.reset()
topicArea.item.reset()
encryptCheckBox.reset()
requireInviteCheckbox.reset()
forbidGuestsCheckBox.reset()
@@ -49,7 +49,7 @@ HBox {
property var saveFuture: null
readonly property bool anyChange:
nameField.item.changed || topicField.item.changed ||
nameField.item.changed || topicArea.item.changed ||
encryptCheckBox.changed || requireInviteCheckbox.changed ||
forbidGuestsCheckBox.changed
@@ -85,12 +85,12 @@ HBox {
}
HLabeledItem {
id: topicField
id: topicArea
label.text: qsTr("Topic:")
Layout.fillWidth: true
HTextField {
HTextArea {
width: parent.width
placeholderText: qsTr("This room is about...")
defaultText: chat.roomInfo.plain_topic