mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-08 06:00:59 -07:00
Always use UIThemeManager for obtaining icons in GUI
This commit is contained in:
parent
a1faef0a3c
commit
43319f2213
10 changed files with 56 additions and 57 deletions
|
@ -85,7 +85,7 @@ void FeedListWidget::handleFeedStateChanged(RSS::Feed *feed)
|
|||
|
||||
QIcon icon;
|
||||
if (feed->isLoading())
|
||||
icon = QIcon(QStringLiteral(":/icons/loading.png"));
|
||||
icon = UIThemeManager::instance()->getIcon(QStringLiteral("loading"));
|
||||
else if (feed->hasError())
|
||||
icon = UIThemeManager::instance()->getIcon(QStringLiteral("unavailable"));
|
||||
else if (!feed->iconPath().isEmpty())
|
||||
|
@ -235,7 +235,7 @@ QTreeWidgetItem *FeedListWidget::createItem(RSS::Item *rssItem, QTreeWidgetItem
|
|||
QIcon icon;
|
||||
if (auto feed = qobject_cast<RSS::Feed *>(rssItem)) {
|
||||
if (feed->isLoading())
|
||||
icon = QIcon(QStringLiteral(":/icons/loading.png"));
|
||||
icon = UIThemeManager::instance()->getIcon(QLatin1String("loading"));
|
||||
else if (feed->hasError())
|
||||
icon = UIThemeManager::instance()->getIcon(QStringLiteral("unavailable"));
|
||||
else if (!feed->iconPath().isEmpty())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue