summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-08-08 12:57:50 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-08-08 12:57:50 +0300
commit3fb57ac04905eb21bedb7b2bfcef4b3bd2a514b7 (patch)
tree925229496cc133633011774171f71b29e784dd4f /src
parentRemove hardcoded colors from the typing display (diff)
downloadnheko-3fb57ac04905eb21bedb7b2bfcef4b3bd2a514b7.tar.xz
Add tooltips for the message indicators (#377)
Diffstat (limited to 'src')
-rw-r--r--src/timeline/TimelineItem.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/timeline/TimelineItem.cpp b/src/timeline/TimelineItem.cpp

index 82d3ab92..fcbabf5a 100644 --- a/src/timeline/TimelineItem.cpp +++ b/src/timeline/TimelineItem.cpp
@@ -94,6 +94,25 @@ void StatusIndicator::setState(StatusIndicatorState state) { state_ = state; + + switch (state) { + case StatusIndicatorState::Encrypted: + setToolTip(tr("Encrypted")); + break; + case StatusIndicatorState::Received: + setToolTip(tr("Delivered")); + break; + case StatusIndicatorState::Read: + setToolTip(tr("Seen")); + break; + case StatusIndicatorState::Sent: + setToolTip(tr("Sent")); + break; + case StatusIndicatorState::Empty: + setToolTip(""); + break; + } + update(); }