use 4 spaces instead of tabs
This commit is contained in:
parent
37eaeaae13
commit
8d8ccaad7f
1 changed files with 13 additions and 13 deletions
|
@ -9,23 +9,23 @@
|
||||||
|
|
||||||
QString SettingsCache::guessConfigurationPath(QString & specificPath)
|
QString SettingsCache::guessConfigurationPath(QString & specificPath)
|
||||||
{
|
{
|
||||||
const QString fileName="servatrice.ini";
|
const QString fileName="servatrice.ini";
|
||||||
QString guessFileName;
|
QString guessFileName;
|
||||||
|
|
||||||
// specific path
|
// specific path
|
||||||
if(!specificPath.isEmpty() && QFile::exists(specificPath))
|
if(!specificPath.isEmpty() && QFile::exists(specificPath))
|
||||||
return specificPath;
|
return specificPath;
|
||||||
|
|
||||||
// application directory path
|
// application directory path
|
||||||
guessFileName = QCoreApplication::applicationDirPath() + "/" + fileName;
|
guessFileName = QCoreApplication::applicationDirPath() + "/" + fileName;
|
||||||
if(QFile::exists(guessFileName))
|
if(QFile::exists(guessFileName))
|
||||||
return guessFileName;
|
return guessFileName;
|
||||||
|
|
||||||
#ifdef Q_OS_UNIX
|
#ifdef Q_OS_UNIX
|
||||||
// /etc
|
// /etc
|
||||||
guessFileName = "/etc/servatrice/" + fileName;
|
guessFileName = "/etc/servatrice/" + fileName;
|
||||||
if(QFile::exists(guessFileName))
|
if(QFile::exists(guessFileName))
|
||||||
return guessFileName;
|
return guessFileName;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if QT_VERSION >= 0x050000
|
#if QT_VERSION >= 0x050000
|
||||||
|
|
Loading…
Reference in a new issue