forked from qt-creator/qt-creator
QmlProfiler: Rename registerProfilerStateManager()
... to follow the convention for setters. Change-Id: Id471a93a1be1beed0438fed710fa09afa5ee2832 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -361,7 +361,7 @@ void QmlProfilerClientManager::qmlNewEngine(int engineId)
|
||||
d->qmlclientplugin->sendRecordingStatus(engineId);
|
||||
}
|
||||
|
||||
void QmlProfilerClientManager::registerProfilerStateManager( QmlProfilerStateManager *profilerState )
|
||||
void QmlProfilerClientManager::setProfilerStateManager(QmlProfilerStateManager *profilerState)
|
||||
{
|
||||
if (d->profilerState) {
|
||||
disconnect(d->profilerState, &QmlProfilerStateManager::stateChanged,
|
||||
|
||||
@@ -45,7 +45,7 @@ public:
|
||||
explicit QmlProfilerClientManager(QObject *parent = 0);
|
||||
~QmlProfilerClientManager();
|
||||
|
||||
void registerProfilerStateManager(QmlProfilerStateManager *profilerState);
|
||||
void setProfilerStateManager(QmlProfilerStateManager *profilerState);
|
||||
void setTcpConnection(QString host, Utils::Port port);
|
||||
void setLocalSocket(QString file);
|
||||
|
||||
|
||||
@@ -143,7 +143,7 @@ QmlProfilerTool::QmlProfilerTool(QObject *parent)
|
||||
this, &QmlProfilerTool::setRecordedFeatures);
|
||||
|
||||
d->m_profilerConnections = new QmlProfilerClientManager(this);
|
||||
d->m_profilerConnections->registerProfilerStateManager(d->m_profilerState);
|
||||
d->m_profilerConnections->setProfilerStateManager(d->m_profilerState);
|
||||
connect(d->m_profilerConnections, &QmlProfilerClientManager::connectionClosed,
|
||||
this, &QmlProfilerTool::clientsDisconnected);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user