forked from qt-creator/qt-creator
QmlDebug: Decouple QmlDebugConnection and QmlDebugClient
The protected methods of QmlDebugClient need to be called by QmlDebugConnection already. We also want to call them directly for testing, so we make them public rather than having QmlDebugConnection be a friend. By using a QPointer, we can avoid resetting the connection on each client when it is deleted. Change-Id: I2c0e3d2b8ec19e9acbc6b8f5623b4c28caae319a Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -52,6 +52,8 @@ public:
|
||||
bool isRecording() const;
|
||||
void setRecording(bool);
|
||||
quint64 recordedFeatures() const;
|
||||
virtual void messageReceived(const QByteArray &) override;
|
||||
virtual void stateChanged(State status) override;
|
||||
|
||||
void clearData();
|
||||
void sendRecordingStatus(int engineId = -1);
|
||||
@@ -68,10 +70,6 @@ signals:
|
||||
|
||||
void cleared();
|
||||
|
||||
protected:
|
||||
virtual void stateChanged(State status) override;
|
||||
virtual void messageReceived(const QByteArray &) override;
|
||||
|
||||
private:
|
||||
class QmlProfilerTraceClientPrivate *d;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user