forked from qt-creator/qt-creator
QmlProfiler: Directly pass events from client to model
Running them through the model manager via signals doesn't make much sense anymore. Change-Id: I6103d281dd640493f28acd7e787ea49712ebd8df Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
@@ -37,13 +37,15 @@
|
||||
|
||||
namespace QmlProfiler {
|
||||
|
||||
class QmlProfilerDataModel;
|
||||
class QmlProfilerTraceClient : public QmlDebug::QmlDebugClient
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(bool recording READ isRecording WRITE setRecording NOTIFY recordingChanged)
|
||||
|
||||
public:
|
||||
QmlProfilerTraceClient(QmlDebug::QmlDebugConnection *client, quint64 features);
|
||||
QmlProfilerTraceClient(QmlDebug::QmlDebugConnection *client, QmlProfilerDataModel *model,
|
||||
quint64 features);
|
||||
~QmlProfilerTraceClient();
|
||||
|
||||
bool isRecording() const;
|
||||
@@ -61,8 +63,6 @@ signals:
|
||||
void traceFinished(qint64 timestamp, const QList<int> &engineIds);
|
||||
void traceStarted(qint64 timestamp, const QList<int> &engineIds);
|
||||
|
||||
void qmlEvent(const QmlEvent &event, const QmlEventType &type);
|
||||
|
||||
void recordingChanged(bool arg);
|
||||
void recordedFeaturesChanged(quint64 features);
|
||||
void newEngine(int engineId);
|
||||
|
||||
Reference in New Issue
Block a user