forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user