QMakeStep: Disable qmljsdebugger checkbox for Symbian, Maemo5

Debugging on device or the emulator is right now not supported.

Reviewed-by: dt
This commit is contained in:
Kai Koehne
2011-04-07 11:54:40 +02:00
parent 1b7fc163fe
commit 90e9ec4749

View File

@@ -331,6 +331,17 @@ bool QMakeStep::isQmlDebuggingLibrarySupported(QString *reason) const
if (qt4BuildConfiguration()->qtVersion()->hasQmlDebuggingLibrary())
return true;
if (!qt4BuildConfiguration()->qtVersion()->qtAbis().isEmpty()) {
ProjectExplorer::Abi abi = qt4BuildConfiguration()->qtVersion()->qtAbis().first();
if (abi.os() == ProjectExplorer::Abi::SymbianOS
|| abi.osFlavor() == ProjectExplorer::Abi::MaemoLinuxFlavor) {
if (reason)
*reason = QString();
// *reason = tr("Qml debugging on device not yet supported.");
return false;
}
}
if (!qt4BuildConfiguration()->qtVersion()->isValid()) {
if (reason)
*reason = tr("Invalid Qt version.");