Skip to content
Snippets Groups Projects
Commit 9635b248 authored by Marcus Hoffmann's avatar Marcus Hoffmann
Browse files

UserProfile: display status message


Signed-off-by: default avatarMarcus Hoffmann <bubu@bubu1.eu>
parent 9c5a7c40
No related branches found
No related tags found
No related merge requests found
......@@ -177,6 +177,21 @@ ApplicationWindow {
Layout.alignment: Qt.AlignHCenter
}
MatrixText {
id: statusMsg
text: qsTr("Status: %1").arg(Presence.userStatus(profile.userid))
visible: Presence.userStatus(profile.userid) != ""
Layout.alignment: Qt.AlignHCenter
font.italic: true
font.pointSize: Math.floor(fontMetrics.font.pointSize * 0.9)
Connections {
target: Presence
function onPresenceChanged(id) {
if (id == profile.userid) statusMsg.text = Presence.userStatus(profile.userid);
}
}
}
RowLayout {
visible: !profile.isGlobalUserProfile
Layout.alignment: Qt.AlignHCenter
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment