2018-07-12 01:44:41 +00:00
|
|
|
import QtQuick 2.9
|
|
|
|
import QtQuick.Controls 2.2
|
|
|
|
import QtQuick.Controls.Material 2.2
|
2018-07-10 06:34:17 +00:00
|
|
|
|
|
|
|
AvatarContainer {
|
2018-08-05 10:06:57 +00:00
|
|
|
readonly property var downloadAndOpen: downloadable.downloadAndOpen
|
|
|
|
readonly property var saveFileAs: downloadable.saveFileAs
|
|
|
|
|
2018-08-17 07:58:08 +00:00
|
|
|
id: messageRow
|
|
|
|
|
2018-07-10 06:34:17 +00:00
|
|
|
DownloadableContent {
|
|
|
|
id: downloadable
|
|
|
|
|
2018-08-05 10:06:57 +00:00
|
|
|
width: downloadDelegate.width
|
|
|
|
height: downloadDelegate.height
|
2018-07-10 06:34:17 +00:00
|
|
|
|
2018-08-05 10:06:57 +00:00
|
|
|
TextDelegate {
|
|
|
|
id: downloadDelegate
|
2018-07-10 06:34:17 +00:00
|
|
|
|
2018-08-05 10:06:57 +00:00
|
|
|
maximumWidth: messageListView.width
|
2018-07-10 06:34:17 +00:00
|
|
|
highlighted: !sentByMe
|
2018-08-05 10:06:57 +00:00
|
|
|
timeLabelVisible: false
|
2018-08-17 11:46:46 +00:00
|
|
|
authorLabelVisible: false
|
2018-07-10 06:34:17 +00:00
|
|
|
|
2018-08-05 10:06:57 +00:00
|
|
|
displayText: "<b>File: </b>" + content.body
|
2018-07-10 06:34:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|