UserProfile: display status message
Signed-off-by: Marcus Hoffmann <bubu@bubu1.eu>
This commit is contained in:
parent
9c5a7c4075
commit
9635b248f8
@ -177,6 +177,21 @@ ApplicationWindow {
|
|||||||
Layout.alignment: Qt.AlignHCenter
|
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 {
|
RowLayout {
|
||||||
visible: !profile.isGlobalUserProfile
|
visible: !profile.isGlobalUserProfile
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
|
Loading…
Reference in New Issue
Block a user