diff options
author | hjk <hjk@qt.io> | 2019-05-17 12:32:05 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2019-05-17 11:55:04 +0000 |
commit | f4c9e5e5c4b7f61d28e34c1912965c0e27d3b0e6 (patch) | |
tree | 18f296e0ca70bb0a6ac9428b9dceee43ca8d0131 /src/tools | |
parent | 0565457b5c16564d2b230dca8eea6d94024efae2 (diff) |
More FileName::appendPath() -> .pathAppended()
Change-Id: I403d34e4f52f758339c158efc7a11fd329e3e043
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/sdktool/settings.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/tools/sdktool/settings.cpp b/src/tools/sdktool/settings.cpp index 3c567afd0c..f70fefcf2e 100644 --- a/src/tools/sdktool/settings.cpp +++ b/src/tools/sdktool/settings.cpp @@ -47,11 +47,10 @@ Settings::Settings() : m_instance = this; // autodetect sdk dir: - sdkPath = Utils::FileName::fromString(QCoreApplication::applicationDirPath()); - sdkPath.appendPath(QLatin1String(DATA_PATH)); - sdkPath = Utils::FileName::fromString(QDir::cleanPath(sdkPath.toString())); - sdkPath.appendPath(QLatin1String(Core::Constants::IDE_SETTINGSVARIANT_STR) - + '/' + Core::Constants::IDE_ID); + sdkPath = Utils::FileName::fromString(QCoreApplication::applicationDirPath()) + .pathAppended(DATA_PATH); + sdkPath = Utils::FileName::fromString(QDir::cleanPath(sdkPath.toString())) + .pathAppended(QLatin1String(Core::Constants::IDE_SETTINGSVARIANT_STR) + '/' + Core::Constants::IDE_ID); } Utils::FileName Settings::getPath(const QString &file) |