Archived
1
Fork 0
This repository has been archived on 2025-04-12. You can view files and clone it, but cannot push or open issues or pull requests.
trinity/qml/InviteDialog.qml
2021-07-21 16:08:15 -04:00

42 lines
680 B
QML

import QtQuick 2.6
import QtQuick.Controls 2.3
Popup {
id: dialog
width: 300
height: 110
x: parent.width / 2 - width / 2
y: parent.height / 2 - height / 2
modal: true
Text {
id: descriptionLabel
text: "Who do you want to invite to this room?"
color: "white"
}
TextField {
id: idField
placeholderText: "Matrix id"
anchors.top: descriptionLabel.bottom
anchors.topMargin: 10
}
Button {
anchors.top: idField.bottom
text: "Invite"
onClicked: {
matrix.inviteToRoom(matrix.currentRoom, idField.text)
close()
}
}
}