~nicohman/signal-rs

ref: ad7bba6ed316afe281e38a8327baf7c1bbf824da signal-rs/qml/chats/EditGroup.qml -rw-r--r-- 1020 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import QtQuick 2.12
import QtQuick.Controls 2.5
import QtQuick.Layouts 1.15
import org.kde.kirigami 2.13 as Kirigami

Kirigami.Page {
	id: editGroup
	title: "Edit Group"
	property var currentGroup: signalState.currentGroup
	ColumnLayout {
		anchors.fill: parent
		Label {
			font.pixelSize: Qt.application.font.pixelSize * 1.6
			text: currentGroup.name
		}
		ListView {
			Layout.fillHeight: true
			Layout.fillWidth: true
			model: signalState.editGroupMembersModel
			delegate: ItemDelegate {
				height: egRow.height
				Row {
					Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter	
					id: egRow
					height: egLabel.height + egLabelId.height
					Column {
						Label {
							height: 20
							id: egLabel
							text: c_name
						}
						Label {
							height: 20
							id: egLabelId
							text: model.id
						}				
					}
					Button {
						id: editGroupRemoveButton
						icon.name: "delete"
						onClicked: {
							console.log("Deleting from group not supported");
						}
					}
				}
			}
		}
	}
}