mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
Use QString literals
This patch covers src/gui and some leftovers from previous commit.
This commit is contained in:
parent
5341478036
commit
802ec5a14e
59 changed files with 912 additions and 902 deletions
|
@ -196,7 +196,7 @@ UIThemeManager *UIThemeManager::instance()
|
|||
|
||||
void UIThemeManager::applyStyleSheet() const
|
||||
{
|
||||
qApp->setStyleSheet(m_themeSource->readStyleSheet());
|
||||
qApp->setStyleSheet(QString::fromUtf8(m_themeSource->readStyleSheet()));
|
||||
}
|
||||
|
||||
QIcon UIThemeManager::getIcon(const QString &iconId, const QString &fallback) const
|
||||
|
@ -330,7 +330,7 @@ void UIThemeManager::loadColorsFromJSONConfig()
|
|||
return;
|
||||
}
|
||||
|
||||
const QJsonObject colors = configJsonDoc.object().value("colors").toObject();
|
||||
const QJsonObject colors = configJsonDoc.object().value(u"colors").toObject();
|
||||
for (auto color = colors.constBegin(); color != colors.constEnd(); ++color)
|
||||
{
|
||||
const QColor providedColor(color.value().toString());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue