diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2013-10-23 22:07:46 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2013-10-24 10:38:36 +0200 |
commit | 4de3b9484051483f6f0329f1ec0c3feef325045c (patch) | |
tree | ee0c140cfc40fa45b0ea5c1213dd5e03213fc489 /src/plugins/welcome | |
parent | bc81930f17f5fe897fd0ede57169a52751b72f73 (diff) | |
download | qt-creator-4de3b9484051483f6f0329f1ec0c3feef325045c.tar.gz |
Crossify normalizePathName
Denoise usages
get{Short|Long}PathName are now static. They're not used anywhere except
in normalizePathName.
Change-Id: Ief277b6d828faadd98ec7faa39dd682bfaa8805f
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: hjk <hjk121@nokiamail.com>
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Diffstat (limited to 'src/plugins/welcome')
-rw-r--r-- | src/plugins/welcome/welcomeplugin.cpp | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/plugins/welcome/welcomeplugin.cpp b/src/plugins/welcome/welcomeplugin.cpp index 202645a5d4..da1aa21fb3 100644 --- a/src/plugins/welcome/welcomeplugin.cpp +++ b/src/plugins/welcome/welcomeplugin.cpp @@ -40,6 +40,7 @@ #include <projectexplorer/projectexplorer.h> +#include <utils/fileutils.h> #include <utils/hostosinfo.h> #include <utils/styledbar.h> #include <utils/iwelcomepage.h> @@ -208,22 +209,14 @@ void WelcomeMode::facilitateQml(QQmlEngine * /*engine*/) static QString applicationDirPath() { -#ifdef Q_OS_WIN // normalize paths so QML doesn't freak out if it's wrongly capitalized on Windows - return Utils::normalizePathName(QCoreApplication::applicationDirPath()); -#else - return QCoreApplication::applicationDirPath(); -#endif + return Utils::FileUtils::normalizePathName(QCoreApplication::applicationDirPath()); } static QString resourcePath() { -#ifdef Q_OS_WIN // normalize paths so QML doesn't freak out if it's wrongly capitalized on Windows - return Utils::normalizePathName(Core::ICore::resourcePath()); -#else - return Core::ICore::resourcePath(); -#endif + return Utils::FileUtils::normalizePathName(Core::ICore::resourcePath()); } void WelcomeMode::initPlugins() |