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:
Kai Koehne
2011-04-14 15:49:12 +02:00
parent c8aa3dc8d2
commit 20cb599b8c
6 changed files with 12 additions and 9 deletions

View File

@@ -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()) {