Removing online indicator from chat window

This commit is contained in:
Sarah Jamie Lewis 2019-02-19 11:56:02 -08:00
parent 3a25e79916
commit 1483492f61
3 changed files with 8 additions and 0 deletions

View File

@ -11,9 +11,11 @@ Item {
implicitHeight: 48
anchors.margins: 5
property string handle
property alias source: img.source
property int status
property bool isGroup
property bool showStatus
Rectangle {
@ -44,6 +46,7 @@ Item {
}
Rectangle { // PRESENCE INDICATOR
visible: showStatus
color: "#FFFFFF"
width: 8
height: 8

View File

@ -39,6 +39,7 @@ RowLayout { // LOTS OF NESTING TO DEAL WITH QT WEIRDNESS, SORRY
ContactPicture {
id: imgProfile
showStatus: true
}
Label { // CONTACT NAME

View File

@ -31,13 +31,16 @@ RowLayout {
ack.source = "qrc:/qml/images/fontawesome/regular/check-circle.svg"
}
}
}
ContactPicture {
id: imgProfile
anchors.left: parent.left
handle: root.from
visible: !fromMe
showStatus: false
MouseArea {
anchors.fill: parent
@ -48,6 +51,7 @@ RowLayout {
overlayStack.overlay = overlayStack.chatOverlay
}
}
}
Rectangle { // THIS IS JUST A PRETTY MESSAGE-HOLDING RECTANGLE