core: Fix coding style

This commit is contained in:
Oleg Shparber 2017-03-02 22:36:43 -05:00
parent 29392886ac
commit 5af3f1f2f5

View File

@ -81,13 +81,13 @@ void Settings::load()
settings->beginGroup(GroupContent); settings->beginGroup(GroupContent);
minimumFontSize = settings->value(QStringLiteral("minimum_font_size"), minimumFontSize = settings->value(QStringLiteral("minimum_font_size"),
QWebSettings::globalSettings()->fontSize(QWebSettings::MinimumFontSize)).toInt(); QWebSettings::globalSettings()->fontSize(QWebSettings::MinimumFontSize)).toInt();
QWebSettings::globalSettings()->setFontSize(QWebSettings::MinimumFontSize, minimumFontSize); QWebSettings::globalSettings()->setFontSize(QWebSettings::MinimumFontSize, minimumFontSize);
settings->endGroup(); settings->endGroup();
settings->beginGroup(GroupProxy); settings->beginGroup(GroupProxy);
proxyType = static_cast<ProxyType>(settings->value(QStringLiteral("type"), proxyType = static_cast<ProxyType>(settings->value(QStringLiteral("type"),
ProxyType::System).toUInt()); ProxyType::System).toUInt());
proxyHost = settings->value(QStringLiteral("host")).toString(); proxyHost = settings->value(QStringLiteral("host")).toString();
proxyPort = static_cast<quint16>(settings->value(QStringLiteral("port"), 0).toUInt()); proxyPort = static_cast<quint16>(settings->value(QStringLiteral("port"), 0).toUInt());
proxyAuthenticate = settings->value(QStringLiteral("authenticate"), false).toBool(); proxyAuthenticate = settings->value(QStringLiteral("authenticate"), false).toBool();
@ -117,8 +117,8 @@ void Settings::load()
settings->beginGroup(GroupInternal); settings->beginGroup(GroupInternal);
installId = settings->value(QStringLiteral("install_id"), installId = settings->value(QStringLiteral("install_id"),
// Avoid curly braces (QTBUG-885) // Avoid curly braces (QTBUG-885)
QUuid::createUuid().toString().mid(1, 36)).toString(); QUuid::createUuid().toString().mid(1, 36)).toString();
settings->endGroup(); settings->endGroup();
} }