Maemo: Use dynamic port list.

Check whether the ports we need are actually available on the device.
As a side effect, this makes it possible to debug more than one
application at the same time on Maemo.

Task-number: QTCREATORBUG-2702
This commit is contained in:
Christian Kandeler
2010-11-02 10:24:50 +01:00
parent 8415d0faa0
commit 548df9385b
18 changed files with 162 additions and 116 deletions

View File

@@ -282,8 +282,10 @@ void QmlEngine::runEngine()
showMessage(tr("QML Debugger connecting..."), StatusBar);
}
void QmlEngine::handleRemoteSetupDone()
void QmlEngine::handleRemoteSetupDone(int port)
{
if (port != -1)
startParameters().qmlServerPort = port;
notifyInferiorSetupOk();
}

View File

@@ -48,7 +48,7 @@ public:
explicit QmlEngine(const DebuggerStartParameters &startParameters);
virtual ~QmlEngine();
void handleRemoteSetupDone();
void handleRemoteSetupDone(int port);
void handleRemoteSetupFailed(const QString &message);
void setAttachToRunningExternalApp(bool value);