QmlProject and Observer: Work with Simulator Qt targets.

This allows using the qmlviewer of a Simulator Qt version. It also
builds and uses the qmlobserver when debugging.

Reviewed-by: Kai Koehne
This commit is contained in:
Christian Kamm
2010-11-12 13:37:54 +01:00
parent 8f70d0e200
commit 8f85202fb1
2 changed files with 4 additions and 2 deletions

View File

@@ -473,7 +473,8 @@ void QmlProjectRunConfiguration::manageQtVersions()
bool QmlProjectRunConfiguration::isValidVersion(Qt4ProjectManager::QtVersion *version)
{
if (version
&& version->supportsTargetId(Qt4ProjectManager::Constants::DESKTOP_TARGET_ID)
&& (version->supportsTargetId(Qt4ProjectManager::Constants::DESKTOP_TARGET_ID)
|| version->supportsTargetId(Qt4ProjectManager::Constants::QT_SIMULATOR_TARGET_ID))
&& !version->qmlviewerCommand().isEmpty()) {
return true;
}