~nicohman/signal-rs

ref: 5084c926fb753fdc6dda5f3cc2c8af2df5f1190b signal-rs/qml/messages/MessageInfo.qml -rw-r--r-- 590 bytes
5084c926 — nicohman Make SignalUI a singleton and add application icon 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
26
import QtQuick 2.15
import QtQuick.Controls 2.5
import QtQuick.Layouts 1.15
import org.kde.kirigami 2.13 as Kirigami
import SignalUI 0.1

Kirigami.OverlaySheet {
	id: messageInfo
	property var message: ""
	parent: window.overlay
	function showMessage(chat_id, sent_at) {
		messageInfo.message = signalState.message(sent_at, chat_id);
		messageInfo.open();
		console.log(messageInfo.message);
	}
	header: Kirigami.Heading {
		text: "Message Source"
	}
	TextArea {
		text: messageInfo.message
		readOnly: true
		color: Kirigami.Theme.textColor
		wrapMode: Text.Wrap
		width: parent.width
	}
}