Add tooltips for the message indicators (#377)

This commit is contained in:
Konstantinos Sideris 2018-08-08 12:57:50 +03:00
parent 8d3ef470f9
commit 3fb57ac049

View file

@ -94,6 +94,25 @@ void
StatusIndicator::setState(StatusIndicatorState state) StatusIndicator::setState(StatusIndicatorState state)
{ {
state_ = 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(); update();
} }