Core::Settings: Q_DECLARE_METATYPE(ProxyType)

Allows to use QVariant::value<ProxyType>().
This commit is contained in:
Oleg Shparber
2015-09-08 22:29:12 -04:00
parent 6f03ff6ee2
commit cb144a1e88
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -94,7 +94,7 @@ void Settings::load()
m_settings->endGroup();
m_settings->beginGroup(GroupProxy);
proxyType = static_cast<ProxyType>(m_settings->value(QStringLiteral("type"), ProxyType::System).toUInt());
proxyType = m_settings->value(QStringLiteral("type"), ProxyType::System).value<ProxyType>();
proxyHost = m_settings->value(QStringLiteral("host")).toString();
proxyPort = m_settings->value(QStringLiteral("port"), 0).toInt();
proxyAuthenticate = m_settings->value(QStringLiteral("authenticate"), false).toBool();