QmlDebugging: Use -qmljsdebugger command line argument

Adapt to latest changes in qt.git (commit
a9e5329168c)

Reviewed-by: kkoehne
This commit is contained in:
Lasse Holmstedt
2010-09-20 12:16:54 +02:00
committed by Kai Koehne
parent 4d0176cd74
commit b580a0c357
5 changed files with 5 additions and 10 deletions

View File

@@ -313,9 +313,10 @@ int MaemoDebugSupport::qmlServerPort(const MaemoRunConfiguration *rc)
QString MaemoDebugSupport::environment(const MaemoRunConfiguration *rc)
{
QList<EnvironmentItem> env = rc->userEnvironmentChanges();
// FIXME: this must use command line argument instead: -qmljsdebugger=port:1234.
if (rc->useQmlDebugger()) {
env << EnvironmentItem(QLatin1String(Debugger::Constants::E_QML_DEBUG_SERVER_PORT),
QString::number(qmlServerPort(rc)));
// env << EnvironmentItem(QLatin1String(Debugger::Constants::E_QML_DEBUG_SERVER_PORT),
// QString::number(qmlServerPort(rc)));
}
return MaemoGlobal::remoteEnvironment(env);
}