forked from qt-creator/qt-creator
QmlDebug: Allow retrieval of connection from debug client
Change-Id: Ifae983771dd0fcf1c12fb7d3e9fa496de6d24373 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -90,6 +90,7 @@ public:
|
||||
QString name() const;
|
||||
int remoteVersion() const;
|
||||
State state() const;
|
||||
QmlDebugConnection *connection() const;
|
||||
|
||||
virtual void sendMessage(const QByteArray &);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user