forked from qt-creator/qt-creator
QmlProfiler: Remove use of Qt private headers
Use the copy of QDeclarativeDebugClient we ship with qtcreator. However, since the internal one misses a waitForConnected any connection will right now fail.
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
#include "qmlprofilerattachdialog.h"
|
||||
|
||||
#include "tracewindow.h"
|
||||
#include <private/qdeclarativedebugclient_p.h>
|
||||
#include <qmljsdebugclient/qdeclarativedebugclient_p.h>
|
||||
|
||||
#include <analyzerbase/analyzermanager.h>
|
||||
#include <analyzerbase/analyzerconstants.h>
|
||||
@@ -146,7 +146,7 @@ QmlProfilerTool::QmlProfilerTool(QObject *parent)
|
||||
QmlProfilerTool::~QmlProfilerTool()
|
||||
{
|
||||
if (d->m_client->isConnected())
|
||||
d->m_client->disconnectFromHost();
|
||||
d->m_client->close();
|
||||
delete d->m_tabbed;
|
||||
|
||||
delete d->m_outputPaneAdapter;
|
||||
@@ -304,7 +304,6 @@ void QmlProfilerTool::connectToClient()
|
||||
d->m_client = newClient;
|
||||
|
||||
d->m_client->connectToHost(d->m_host, d->m_port);
|
||||
d->m_client->waitForConnected();
|
||||
|
||||
if (d->m_client->isConnected()) {
|
||||
d->m_traceWindow->setRecording(d->m_recordingEnabled);
|
||||
@@ -323,10 +322,9 @@ void QmlProfilerTool::connectToClient()
|
||||
|
||||
void QmlProfilerTool::disconnectClient()
|
||||
{
|
||||
d->m_client->disconnectFromHost();
|
||||
d->m_client->close();
|
||||
}
|
||||
|
||||
|
||||
void QmlProfilerTool::startRecording()
|
||||
{
|
||||
if (d->m_client->isConnected()) {
|
||||
|
||||
Reference in New Issue
Block a user