mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Add Busy status
This commit is contained in:
parent
056cf1d658
commit
6a57888771
BIN
img/status/dot_busy.png
Normal file
BIN
img/status/dot_busy.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 308 B |
BIN
img/status/dot_busy_2x.png
Normal file
BIN
img/status/dot_busy_2x.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 947 B |
BIN
img/status/dot_busy_notification.png
Normal file
BIN
img/status/dot_busy_notification.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 791 B |
3
res.qrc
3
res.qrc
@ -97,5 +97,8 @@
|
||||
<file>ui/window/restoreButtonPressed.png</file>
|
||||
<file>ui/friendList/friendList.css</file>
|
||||
<file>ui/window/window.css</file>
|
||||
<file>img/status/dot_busy.png</file>
|
||||
<file>img/status/dot_busy_2x.png</file>
|
||||
<file>img/status/dot_busy_notification.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
@ -277,8 +277,10 @@ void Widget::onStatusSet(Status status)
|
||||
{
|
||||
if (status == Status::Online)
|
||||
ui->statImg->setPixmap(QPixmap(":img/status/dot_online_2x.png"));
|
||||
else if (status == Status::Busy || status == Status::Away)
|
||||
else if (status == Status::Away)
|
||||
ui->statImg->setPixmap(QPixmap(":img/status/dot_idle_2x.png"));
|
||||
else if (status == Status::Busy)
|
||||
ui->statImg->setPixmap(QPixmap(":img/status/dot_busy_2x.png"));
|
||||
else if (status == Status::Offline)
|
||||
ui->statImg->setPixmap(QPixmap(":img/status/dot_away_2x.png"));
|
||||
}
|
||||
@ -508,10 +510,14 @@ void Widget::updateFriendStatusLights(int friendId)
|
||||
f->widget->statusPic.setPixmap(QPixmap(":img/status/dot_online.png"));
|
||||
else if (status == Status::Online && f->hasNewMessages == 1)
|
||||
f->widget->statusPic.setPixmap(QPixmap(":img/status/dot_online_notification.png"));
|
||||
else if ((status == Status::Busy || status == Status::Away) && f->hasNewMessages == 0)
|
||||
else if (status == Status::Away && f->hasNewMessages == 0)
|
||||
f->widget->statusPic.setPixmap(QPixmap(":img/status/dot_idle.png"));
|
||||
else if ((status == Status::Busy || status == Status::Away) && f->hasNewMessages == 1)
|
||||
else if (status == Status::Away && f->hasNewMessages == 1)
|
||||
f->widget->statusPic.setPixmap(QPixmap(":img/status/dot_idle_notification.png"));
|
||||
else if (status == Status::Busy && f->hasNewMessages == 0)
|
||||
f->widget->statusPic.setPixmap(QPixmap(":img/status/dot_busy.png"));
|
||||
else if (status == Status::Busy && f->hasNewMessages == 1)
|
||||
f->widget->statusPic.setPixmap(QPixmap(":img/status/dot_busy_notification.png"));
|
||||
else if (status == Status::Offline && f->hasNewMessages == 0)
|
||||
f->widget->statusPic.setPixmap(QPixmap(":img/status/dot_away.png"));
|
||||
else if (status == Status::Offline && f->hasNewMessages == 1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user