mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Merge branch 'pr1348'
This commit is contained in:
commit
3901bebf90
|
@ -982,7 +982,7 @@ QSplitter:handle{
|
|||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../res.qrc">
|
||||
<normaloff>:/img/status/dot_away.png</normaloff>:/img/status/dot_away.png</iconset>
|
||||
<normaloff>:/img/status/dot_away_2x.png</normaloff>:/img/status/dot_away_2x.png</iconset>
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
<size>
|
||||
|
|
|
@ -414,19 +414,19 @@ void Widget::onStatusSet(Status status)
|
|||
{
|
||||
case Status::Online:
|
||||
ui->statusButton->setProperty("status" ,"online");
|
||||
ui->statusButton->setIcon(QIcon(":img/status/dot_online.png"));
|
||||
ui->statusButton->setIcon(QIcon(":img/status/dot_online_2x.png"));
|
||||
break;
|
||||
case Status::Away:
|
||||
ui->statusButton->setProperty("status" ,"away");
|
||||
ui->statusButton->setIcon(QIcon(":img/status/dot_idle.png"));
|
||||
ui->statusButton->setIcon(QIcon(":img/status/dot_idle_2x.png"));
|
||||
break;
|
||||
case Status::Busy:
|
||||
ui->statusButton->setProperty("status" ,"busy");
|
||||
ui->statusButton->setIcon(QIcon(":img/status/dot_busy.png"));
|
||||
ui->statusButton->setIcon(QIcon(":img/status/dot_busy_2x.png"));
|
||||
break;
|
||||
case Status::Offline:
|
||||
ui->statusButton->setProperty("status" ,"offline");
|
||||
ui->statusButton->setIcon(QIcon(":img/status/dot_away.png"));
|
||||
ui->statusButton->setIcon(QIcon(":img/status/dot_away_2x.png"));
|
||||
break;
|
||||
}
|
||||
updateTrayIcon();
|
||||
|
|
Loading…
Reference in New Issue
Block a user