Fix messages in Qt4ProjectManager.

- 'can not' -> 'cannot'.
- Make messages about toolchain not being able to build for
  Qt version more verbose, listing the ABIs.

Change-Id: If72fec7ba08c7c0c9fb173a1f264691fc24c43dc
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
Friedemann Kleint
2012-07-24 16:39:13 +02:00
committed by hjk
parent 1b9cf76600
commit d1f8e120bf
3 changed files with 19 additions and 5 deletions

View File

@@ -306,11 +306,25 @@ QList<ProjectExplorer::Task> BaseQtVersion::validateProfile(const ProjectExplore
Utils::FileName(), -1,
Core::Id(ProjectExplorer::Constants::TASK_CATEGORY_BUILDSYSTEM));
if (tc && !version->qtAbis().contains(tc->targetAbi()))
const QList<ProjectExplorer::Abi> qtAbis = version->qtAbis();
if (tc && !qtAbis.contains(tc->targetAbi())) {
QString qtAbiString;
foreach (const ProjectExplorer::Abi &qtAbi, qtAbis) {
if (!qtAbiString.isEmpty())
qtAbiString.append(QLatin1Char(' '));
qtAbiString.append(qtAbi.toString());
}
const QString message = QCoreApplication::translate("BaseQtVersion",
"The tool chain '%1' (%2) cannot produce code for the Qt version '%3' (%4).").
arg(tc->displayName(),
tc->targetAbi().toString(),
version->displayName(),
qtAbiString);
result << ProjectExplorer::Task(ProjectExplorer::Task::Error,
QCoreApplication::translate("BaseQtVersion", "Tool chain can not produce code for the Qt version."),
Utils::FileName(), -1,
message, Utils::FileName(), -1,
Core::Id(ProjectExplorer::Constants::TASK_CATEGORY_BUILDSYSTEM));
} // Abi mismatch
return result;
}