From 3fb57ac04905eb21bedb7b2bfcef4b3bd2a514b7 Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Wed, 8 Aug 2018 12:57:50 +0300 Subject: [PATCH] Add tooltips for the message indicators (#377) --- src/timeline/TimelineItem.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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(); }