forked from blue/squawk
Shared namespace refactoring, enum class refactoring, going offline related crash fix
This commit is contained in:
parent
b309100f99
commit
ddfb3419cc
59 changed files with 1948 additions and 1695 deletions
|
@ -17,6 +17,8 @@
|
|||
*/
|
||||
|
||||
#include "room.h"
|
||||
#include "shared/icons.h"
|
||||
|
||||
#include <QIcon>
|
||||
#include <QDebug>
|
||||
|
||||
|
@ -194,15 +196,15 @@ QIcon Models::Room::getStatusIcon(bool big) const
|
|||
} else {
|
||||
if (autoJoin) {
|
||||
if (joined) {
|
||||
return Shared::connectionStateIcon(Shared::connected, big);
|
||||
return Shared::connectionStateIcon(Shared::ConnectionState::connected, big);
|
||||
} else {
|
||||
return Shared::connectionStateIcon(Shared::disconnected, big);
|
||||
return Shared::connectionStateIcon(Shared::ConnectionState::disconnected, big);
|
||||
}
|
||||
} else {
|
||||
if (joined) {
|
||||
return Shared::connectionStateIcon(Shared::connecting, big);
|
||||
return Shared::connectionStateIcon(Shared::ConnectionState::connecting, big);
|
||||
} else {
|
||||
return Shared::connectionStateIcon(Shared::error, big);
|
||||
return Shared::connectionStateIcon(Shared::ConnectionState::error, big);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue