forked from blue/squawk
fallback availabiluty icons, chatty icon
This commit is contained in:
parent
833913cac2
commit
12511b1864
18 changed files with 399 additions and 51 deletions
|
@ -216,12 +216,12 @@ void Models::Contact::setState(Shared::SubscriptionState p_state)
|
|||
}
|
||||
}
|
||||
|
||||
QIcon Models::Contact::getStatusIcon() const
|
||||
QIcon Models::Contact::getStatusIcon(bool big) const
|
||||
{
|
||||
if (getMessagesCount() > 0) {
|
||||
return QIcon::fromTheme("mail-message");
|
||||
} else if (state == Shared::both) {
|
||||
return QIcon::fromTheme(Shared::availabilityThemeIcons[availability]);
|
||||
return Shared::availabilityIcon(availability, big);;
|
||||
} else {
|
||||
return QIcon::fromTheme(Shared::subscriptionStateThemeIcons[state]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue