~nicohman/signal-rs

ref: ad7bba6ed316afe281e38a8327baf7c1bbf824da signal-rs/qml/messages/PictureOverlay.qml -rw-r--r-- 454 bytes
ad7bba6e — nicohman Basic attachments 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import QtQuick 2.12
import QtQuick.Controls 2.5
import QtQuick.Layouts 1.15
import org.kde.kirigami 2.13 as Kirigami

Kirigami.OverlaySheet {
	topPadding: 0
	id: photoOverlay
	property string filePath: ""
	Image {
		MouseArea {
			anchors.fill: parent
			onClicked: {
				photoOverlay.close();
			}
		}
		fillMode: Image.PreserveAspectFit
		source: {
			if (!photoOverlay.filePath) {
				return ""
			}
			return "file://"+photoOverlay.filePath;
		}
	}
}