mirror of
https://github.com/zealdocs/zeal.git
synced 2024-11-27 11:44:56 +03:00
core: Fix coding style
This commit is contained in:
parent
29392886ac
commit
5af3f1f2f5
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user