mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +03:00
Add tooltips for the message indicators (#377)
This commit is contained in:
parent
8d3ef470f9
commit
3fb57ac049
1 changed files with 19 additions and 0 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue