linphone-desktop/linphone-app/ui/modules/Linphone/Chat/ChatFileMessage.qml
Julien Wadel c664d0cc49 The feature of connecting multi devices on the same account is not supported by the video conference.
- Part fix previews for this case.

Fix download text for outgoing files after the restart of the application.


Update SDK to 5.2.88
2023-07-26 16:51:28 +02:00

48 lines
No EOL
1.6 KiB
QML

import QtQuick 2.7
import QtQuick.Controls 2.2
import QtQuick.Layouts 1.3
import Common 1.0
import Linphone 1.0
import LinphoneEnums 1.0
import Linphone.Styles 1.0
import Utils 1.0
import Units 1.0
import ColorsList 1.0
import UtilsCpp 1.0
// =============================================================================
// TODO : into Loader
Item {
id:mainRow
property ChatMessageModel chatMessageModel: contentModel && contentModel.chatMessageModel
property ContentModel contentModel
property int fitHeight: fileView.fitHeight
property int fitWidth: fileView.fitWidth
property alias borderWidth: fileView.borderWidth
property alias backgroundColor: fileView.backgroundColor
property alias backgroundRadius: fileView.backgroundRadius
property alias isHovering: fileView.isHovering
// ---------------------------------------------------------------------------
// File message.
// ---------------------------------------------------------------------------
Rectangle {
id: rectangle
color: 'transparent'
anchors.fill: parent
radius: ChatStyle.entry.message.radius
FileView{
id: fileView
anchors.fill: parent
contentModel: mainRow.contentModel
thumbnail: mainRow.contentModel ? mainRow.contentModel.thumbnail : ''
name: mainRow.contentModel && mainRow.contentModel.name
filePath: mainRow.contentModel && mainRow.contentModel.filePath
isTransferring: mainRow.chatMessageModel && (mainRow.chatMessageModel.state == LinphoneEnums.ChatMessageStateFileTransferInProgress || mainRow.chatMessageModel.state == LinphoneEnums.ChatMessageStateInProgress )
isOutgoing: mainRow.chatMessageModel && mainRow.chatMessageModel.isOutgoing
}
}
}