diff options
author | Ulf Hermann <ulf.hermann@theqtcompany.com> | 2015-09-16 16:28:24 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2015-10-30 19:05:07 +0000 |
commit | 79ed2f70f05d30b82c0cec8843f5431cf8224f1c (patch) | |
tree | 930374460a204c5e4cae6210528998c53d350c97 /tools/qmlprofiler/qmlprofilerapplication.cpp | |
parent | e1db5c660734bd8d43675469ce828944347e739b (diff) |
Move QQmlDebugClient into separate static library
Change-Id: Ib3daf9da2cf6798bd022cfcf54d11e565c9cb4ca
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'tools/qmlprofiler/qmlprofilerapplication.cpp')
-rw-r--r-- | tools/qmlprofiler/qmlprofilerapplication.cpp | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/tools/qmlprofiler/qmlprofilerapplication.cpp b/tools/qmlprofiler/qmlprofilerapplication.cpp index 11718d60ad..dbc145e8b7 100644 --- a/tools/qmlprofiler/qmlprofilerapplication.cpp +++ b/tools/qmlprofiler/qmlprofilerapplication.cpp @@ -90,8 +90,6 @@ QmlProfilerApplication::QmlProfilerApplication(int &argc, char **argv) : connect(&m_connectTimer, SIGNAL(timeout()), this, SLOT(tryToConnect())); connect(&m_connection, SIGNAL(connected()), this, SLOT(connected())); - connect(&m_connection, SIGNAL(stateChanged(QAbstractSocket::SocketState)), this, SLOT(connectionStateChanged(QAbstractSocket::SocketState))); - connect(&m_connection, SIGNAL(error(QAbstractSocket::SocketError)), this, SLOT(connectionError(QAbstractSocket::SocketError))); connect(&m_qmlProfilerClient, SIGNAL(enabledChanged(bool)), this, SLOT(traceClientEnabledChanged(bool))); @@ -500,7 +498,7 @@ void QmlProfilerApplication::tryToConnect() QString::number(m_connectionAttempts))); } - if (m_connection.state() == QAbstractSocket::UnconnectedState) { + if (!m_connection.isConnected()) { logStatus(QString("Connecting to %1:%2 ...").arg(m_hostName, QString::number(m_port))); m_connection.connectToHost(m_hostName, m_port); @@ -515,19 +513,6 @@ void QmlProfilerApplication::connected() .arg(m_hostName).arg((m_port)).arg(m_recording ? tr("on") : tr("off"))); } -void QmlProfilerApplication::connectionStateChanged( - QAbstractSocket::SocketState state) -{ - if (m_verbose) - qDebug() << state; -} - -void QmlProfilerApplication::connectionError(QAbstractSocket::SocketError error) -{ - if (m_verbose) - qDebug() << error; -} - void QmlProfilerApplication::processHasOutput() { Q_ASSERT(m_process); |