QtVersionManager: Introduce qtVersionNumber + various fixes

Make the internal data structure a map from id to Version, simplfing a few
functions. Return sorted lists, with newer versions in front for various
functions, e.g. validVersions(), versionsForTargetId.
This commit is contained in:
dt
2011-02-21 12:16:20 +01:00
parent ac0cf764fd
commit a9963b6313
7 changed files with 154 additions and 104 deletions

View File

@@ -59,7 +59,7 @@ bool QmlObserverTool::canBuild(const QtVersion *qtVersion)
{
return (qtVersion->supportsTargetId(Constants::DESKTOP_TARGET_ID)
|| qtVersion->supportsTargetId(Constants::QT_SIMULATOR_TARGET_ID))
&& checkMinimumQtVersion(qtVersion->qtVersionString(), 4, 7, 1);
&& (qtVersion->qtVersion() > QtVersionNumber(4, 7, 1));
}
QString QmlObserverTool::toolForProject(ProjectExplorer::Project *project)