2019-09-08 13:44:46 +03:00
|
|
|
import QtQuick 2.6
|
|
|
|
|
|
|
|
Item {
|
|
|
|
width: 300
|
|
|
|
height: 300 * eventData.proportionalHeight
|
|
|
|
|
|
|
|
Image {
|
2019-09-28 12:07:58 +03:00
|
|
|
id: img
|
2019-09-08 13:44:46 +03:00
|
|
|
anchors.fill: parent
|
|
|
|
|
|
|
|
source: eventData.url.replace("mxc://", "image://MxcImage/")
|
|
|
|
asynchronous: true
|
|
|
|
fillMode: Image.PreserveAspectFit
|
2019-09-28 12:07:58 +03:00
|
|
|
|
|
|
|
MouseArea {
|
|
|
|
anchors.fill: parent
|
2019-09-29 11:45:35 +03:00
|
|
|
onClicked: timelineManager.openImageOverlay(eventData.url, eventData.filename, eventData.mimetype, eventData.type)
|
2019-09-28 12:07:58 +03:00
|
|
|
}
|
2019-09-08 13:44:46 +03:00
|
|
|
}
|
|
|
|
}
|