diff options
author | Tim Jenssen <tim.jenssen@nokia.com> | 2012-05-16 12:11:25 +0200 |
---|---|---|
committer | Tim Jenssen <tim.jenssen@nokia.com> | 2012-05-16 13:21:08 +0200 |
commit | dfc9887310118de98146f1a7282198f89fae8c18 (patch) | |
tree | 3fe785db1287863e041e35ffa6258cbd3e191124 /src/libs/installer/registerqtvqnxoperation.cpp | |
parent | 089fb8b740d0d56522e5def0af93a10eaa6abddc (diff) |
now the qt creator releated locations are more flexible
- tried to remove or move Qt/Qt Creator related things from the core classes
Change-Id: I168ae3c56785e389ac34b761be98a7782a683de7
Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
Reviewed-by: Niels Weber <niels.2.weber@nokia.com>
Diffstat (limited to 'src/libs/installer/registerqtvqnxoperation.cpp')
-rw-r--r-- | src/libs/installer/registerqtvqnxoperation.cpp | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/src/libs/installer/registerqtvqnxoperation.cpp b/src/libs/installer/registerqtvqnxoperation.cpp index c7cdb8c4f..1b0a6ab68 100644 --- a/src/libs/installer/registerqtvqnxoperation.cpp +++ b/src/libs/installer/registerqtvqnxoperation.cpp @@ -32,7 +32,6 @@ #include "registerqtvqnxoperation.h" -#include "constants.h" #include "packagemanagercore.h" #include "qtcreator_constants.h" #include "persistentsettings.h" @@ -104,15 +103,14 @@ bool RegisterQtInCreatorQNXOperation::performOperation() setErrorString(tr("Needed installer object in \"%1\" operation is empty.").arg(name())); return false; } - const QString &rootInstallPath = core->value(scTargetDir); - if (rootInstallPath.isEmpty() || !QDir(rootInstallPath).exists()) { + + if (core->value(scQtCreatorInstallerQtVersionFile).isEmpty()) { setError(UserDefinedError); - setErrorString(tr("The given TargetDir %1 is not a valid/existing dir.").arg(rootInstallPath)); + setErrorString(tr("There is no value set for %1 on the installer object.").arg( + scQtCreatorInstallerQtVersionFile)); return false; } - - const QString qtVersionsFileName = rootInstallPath - + QLatin1String(QtVersionSettingsSuffixPath); + const QString qtVersionsFileName = core->value(scQtCreatorInstallerQtVersionFile); int argCounter = 0; const QString &versionName = args.at(argCounter++); const QString &path = QDir::toNativeSeparators(args.value(argCounter++)); @@ -185,10 +183,7 @@ bool RegisterQtInCreatorQNXOperation::undoOperation() setErrorString(tr("Needed installer object in \"%1\" operation is empty.").arg(name())); return false; } - const QString &rootInstallPath = core->value(scTargetDir); - - const QString qtVersionsFileName = rootInstallPath - + QLatin1String(QtVersionSettingsSuffixPath); + const QString qtVersionsFileName = core->value(scQtCreatorInstallerQtVersionFile); ProjectExplorer::PersistentSettingsReader reader; // If no file, then it has been removed already |