Skip to content
This repository has been archived by the owner on Oct 17, 2019. It is now read-only.

Commit

Permalink
Add tooltips for the message indicators (#377)
Browse files Browse the repository at this point in the history
  • Loading branch information
mujx committed Aug 8, 2018
1 parent 8d3ef47 commit 3fb57ac
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/timeline/TimelineItem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 3fb57ac

Please sign in to comment.