Prepare message attachments
This commit is contained in:
parent
f2284a8fe9
commit
e222ab115d
1 changed files with 63 additions and 63 deletions
|
@ -841,15 +841,11 @@ Page {
|
|||
height: sendMessageColumn.height + Theme.paddingMedium
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
|
||||
Column {
|
||||
id: sendMessageColumn
|
||||
width: parent.width - newMessageSendButton.width
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
|
||||
TextArea {
|
||||
id: newMessageTextField
|
||||
width: parent.width
|
||||
width: parent.width - attachmentIconButton.width - newMessageSendButton.width
|
||||
height: Math.min(chatContainer.height / 3, implicitHeight)
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
font.pixelSize: Theme.fontSizeSmall
|
||||
placeholderText: qsTr("Your message")
|
||||
labelVisible: false
|
||||
|
@ -897,16 +893,20 @@ Page {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Column {
|
||||
anchors.bottom: parent.bottom
|
||||
anchors.bottomMargin: Theme.paddingSmall
|
||||
IconButton {
|
||||
id: attachmentIconButton
|
||||
icon.source: "image://theme/icon-m-attach"
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
onClicked: {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
IconButton {
|
||||
id: newMessageSendButton
|
||||
icon.source: "image://theme/icon-m-chat"
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
enabled: false
|
||||
onClicked: {
|
||||
if (newMessageColumn.editMessageId !== "0") {
|
||||
|
@ -918,7 +918,7 @@ Page {
|
|||
newMessageTextField.focus = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue