forked from blue/squawk
missing fallback icons
This commit is contained in:
parent
9834fc33e8
commit
30c59fbb91
53 changed files with 992 additions and 17 deletions
|
@ -76,7 +76,7 @@ QIcon Models::Account::getStatusIcon(bool big) const
|
|||
} else if (state == Shared::disconnected) {
|
||||
return Shared::availabilityIcon(Shared::offline, big);
|
||||
} else {
|
||||
return QIcon::fromTheme(Shared::connectionStateThemeIcons[state]);
|
||||
return Shared::connectionStateIcon(state);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ QVariant Models::Accounts::data (const QModelIndex& index, int role) const
|
|||
break;
|
||||
case Qt::DecorationRole:
|
||||
if (index.column() == 2) {
|
||||
answer = QIcon::fromTheme(Shared::connectionStateThemeIcons[accs[index.row()]->getState()]);
|
||||
answer = Shared::connectionStateIcon(accs[index.row()]->getState());
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
|
|
@ -219,7 +219,7 @@ void Models::Contact::setState(Shared::SubscriptionState p_state)
|
|||
QIcon Models::Contact::getStatusIcon(bool big) const
|
||||
{
|
||||
if (getMessagesCount() > 0) {
|
||||
return QIcon::fromTheme("mail-message");
|
||||
return Shared::icon("mail-message");
|
||||
} else if (state == Shared::both) {
|
||||
return Shared::availabilityIcon(availability, big);;
|
||||
} else {
|
||||
|
|
|
@ -143,7 +143,7 @@ void Models::Presence::dropMessages()
|
|||
QIcon Models::Presence::getStatusIcon(bool big) const
|
||||
{
|
||||
if (getMessagesCount() > 0) {
|
||||
return QIcon::fromTheme("mail-message");
|
||||
return Shared::icon("mail-message");
|
||||
} else {
|
||||
return Shared::availabilityIcon(availability, big);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue