mirror of https://github.com/vitalif/phantomjs
Rename ini file code to "Config::loadIniFile"
parent
ad53b9bb3e
commit
9c94a8ef24
|
@ -47,13 +47,13 @@ void Config::load()
|
||||||
//loadConfigFile(getSystemConfigFilePath());
|
//loadConfigFile(getSystemConfigFilePath());
|
||||||
|
|
||||||
// Load global config
|
// Load global config
|
||||||
loadConfigFile(getGlobalConfigFilePath());
|
loadIniFile(getGlobalConfigFilePath());
|
||||||
|
|
||||||
// Load local config (allows for overrides)
|
// Load local config (allows for overrides)
|
||||||
loadConfigFile(getLocalConfigFilePath());
|
loadIniFile(getLocalConfigFilePath());
|
||||||
}
|
}
|
||||||
|
|
||||||
void Config::loadConfigFile(const QString &filePath)
|
void Config::loadIniFile(const QString &filePath)
|
||||||
{
|
{
|
||||||
QSettings settings(filePath, QSettings::IniFormat);
|
QSettings settings(filePath, QSettings::IniFormat);
|
||||||
QStringList keys = settings.allKeys();
|
QStringList keys = settings.allKeys();
|
||||||
|
|
|
@ -40,7 +40,7 @@ public:
|
||||||
Config();
|
Config();
|
||||||
|
|
||||||
void load();
|
void load();
|
||||||
void loadConfigFile(const QString &filePath);
|
void loadIniFile(const QString &filePath);
|
||||||
|
|
||||||
bool autoLoadImages() const;
|
bool autoLoadImages() const;
|
||||||
void setAutoLoadImages(const bool value);
|
void setAutoLoadImages(const bool value);
|
||||||
|
|
Loading…
Reference in New Issue