Skip to content
Snippets Groups Projects
Commit 3fb57ac0 authored by Konstantinos Sideris's avatar Konstantinos Sideris
Browse files

Add tooltips for the message indicators (#377)

parent 8d3ef470
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment