86f4119a05
I suck at sizing so the images in the message are currently hardcoded to 300 pixels in width...
15 lines
242 B
QML
15 lines
242 B
QML
import QtQuick 2.6
|
|
|
|
Item {
|
|
width: 300
|
|
height: 300 * eventData.proportionalHeight
|
|
|
|
Image {
|
|
anchors.fill: parent
|
|
|
|
source: eventData.url.replace("mxc://", "image://MxcImage/")
|
|
asynchronous: true
|
|
fillMode: Image.PreserveAspectFit
|
|
}
|
|
}
|