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>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="../res.qrc">
|
<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>
|
||||||
<property name="iconSize">
|
<property name="iconSize">
|
||||||
<size>
|
<size>
|
||||||
|
|
|
@ -414,19 +414,19 @@ void Widget::onStatusSet(Status status)
|
||||||
{
|
{
|
||||||
case Status::Online:
|
case Status::Online:
|
||||||
ui->statusButton->setProperty("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;
|
break;
|
||||||
case Status::Away:
|
case Status::Away:
|
||||||
ui->statusButton->setProperty("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;
|
break;
|
||||||
case Status::Busy:
|
case Status::Busy:
|
||||||
ui->statusButton->setProperty("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;
|
break;
|
||||||
case Status::Offline:
|
case Status::Offline:
|
||||||
ui->statusButton->setProperty("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;
|
break;
|
||||||
}
|
}
|
||||||
updateTrayIcon();
|
updateTrayIcon();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user