mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 21:03:30 -07:00
Avoid overuse of QStringLiteral
This code path doesn't look like frequently used.
This commit is contained in:
parent
99a1802dbb
commit
ba2db3f139
1 changed files with 6 additions and 6 deletions
|
@ -85,13 +85,13 @@ void FeedListWidget::handleFeedStateChanged(RSS::Feed *feed)
|
||||||
|
|
||||||
QIcon icon;
|
QIcon icon;
|
||||||
if (feed->isLoading())
|
if (feed->isLoading())
|
||||||
icon = UIThemeManager::instance()->getIcon(QStringLiteral("loading"));
|
icon = UIThemeManager::instance()->getIcon(QLatin1String("loading"));
|
||||||
else if (feed->hasError())
|
else if (feed->hasError())
|
||||||
icon = UIThemeManager::instance()->getIcon(QStringLiteral("unavailable"));
|
icon = UIThemeManager::instance()->getIcon(QLatin1String("unavailable"));
|
||||||
else if (!feed->iconPath().isEmpty())
|
else if (!feed->iconPath().isEmpty())
|
||||||
icon = QIcon(feed->iconPath());
|
icon = QIcon(feed->iconPath());
|
||||||
else
|
else
|
||||||
icon = UIThemeManager::instance()->getIcon(QStringLiteral("application-rss+xml"));
|
icon = UIThemeManager::instance()->getIcon(QLatin1String("application-rss+xml"));
|
||||||
item->setData(0, Qt::DecorationRole, icon);
|
item->setData(0, Qt::DecorationRole, icon);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -237,14 +237,14 @@ QTreeWidgetItem *FeedListWidget::createItem(RSS::Item *rssItem, QTreeWidgetItem
|
||||||
if (feed->isLoading())
|
if (feed->isLoading())
|
||||||
icon = UIThemeManager::instance()->getIcon(QLatin1String("loading"));
|
icon = UIThemeManager::instance()->getIcon(QLatin1String("loading"));
|
||||||
else if (feed->hasError())
|
else if (feed->hasError())
|
||||||
icon = UIThemeManager::instance()->getIcon(QStringLiteral("unavailable"));
|
icon = UIThemeManager::instance()->getIcon(QLatin1String("unavailable"));
|
||||||
else if (!feed->iconPath().isEmpty())
|
else if (!feed->iconPath().isEmpty())
|
||||||
icon = QIcon(feed->iconPath());
|
icon = QIcon(feed->iconPath());
|
||||||
else
|
else
|
||||||
icon = UIThemeManager::instance()->getIcon(QStringLiteral("application-rss+xml"));
|
icon = UIThemeManager::instance()->getIcon(QLatin1String("application-rss+xml"));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
icon = UIThemeManager::instance()->getIcon("inode-directory");
|
icon = UIThemeManager::instance()->getIcon(QLatin1String("inode-directory"));
|
||||||
}
|
}
|
||||||
item->setData(0, Qt::DecorationRole, icon);
|
item->setData(0, Qt::DecorationRole, icon);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue