QmlDebug: Allow retrieval of connection from debug client

Change-Id: Ifae983771dd0fcf1c12fb7d3e9fa496de6d24373
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
This commit is contained in:
Ulf Hermann
2015-11-13 11:06:11 +01:00
parent 87b2d5cdfe
commit 58a9b0c760
2 changed files with 7 additions and 0 deletions

View File

@@ -400,6 +400,12 @@ QmlDebugClient::State QmlDebugClient::state() const
return Unavailable;
}
QmlDebugConnection *QmlDebugClient::connection() const
{
Q_D(const QmlDebugClient);
return d->connection;
}
void QmlDebugClient::sendMessage(const QByteArray &message)
{
Q_D(QmlDebugClient);

View File

@@ -90,6 +90,7 @@ public:
QString name() const;
int remoteVersion() const;
State state() const;
QmlDebugConnection *connection() const;
virtual void sendMessage(const QByteArray &);