forked from qt-creator/qt-creator
QmlProfiler: rename logStatus to logState for consistency
Change-Id: Ic9a19028fc4bde03619296a90f8251e2d6ad1240 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
@@ -307,7 +307,7 @@ void QmlProfilerClientManager::connectionStateChanged()
|
|||||||
case QAbstractSocket::ConnectingState: {
|
case QAbstractSocket::ConnectingState: {
|
||||||
if (QmlProfilerPlugin::debugOutput)
|
if (QmlProfilerPlugin::debugOutput)
|
||||||
qWarning("QML Profiler: Connecting to debug server ...");
|
qWarning("QML Profiler: Connecting to debug server ...");
|
||||||
QmlProfilerTool::logStatus(tr("QML Profiler: Connecting to %1:%2 ...")
|
QmlProfilerTool::logState(tr("QML Profiler: Connecting to %1:%2 ...")
|
||||||
.arg(d->tcpHost, QString::number(d->tcpPort)));
|
.arg(d->tcpHost, QString::number(d->tcpPort)));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -317,7 +317,7 @@ void QmlProfilerClientManager::connectionStateChanged()
|
|||||||
qWarning("QML Profiler: connected and running");
|
qWarning("QML Profiler: connected and running");
|
||||||
// notify the client recording status
|
// notify the client recording status
|
||||||
clientRecordingChanged();
|
clientRecordingChanged();
|
||||||
QmlProfilerTool::logStatus(tr("QML Profiler: connected and running"));
|
QmlProfilerTool::logState(tr("QML Profiler: connected and running"));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case QAbstractSocket::ClosingState:
|
case QAbstractSocket::ClosingState:
|
||||||
@@ -344,9 +344,9 @@ void QmlProfilerClientManager::retryMessageBoxFinished(int result)
|
|||||||
}
|
}
|
||||||
default: {
|
default: {
|
||||||
if (d->connection)
|
if (d->connection)
|
||||||
QmlProfilerTool::logStatus(QLatin1String("QML Profiler: Failed to connect! ") + d->connection->errorString());
|
QmlProfilerTool::logState(QLatin1String("QML Profiler: Failed to connect! ") + d->connection->errorString());
|
||||||
else
|
else
|
||||||
QmlProfilerTool::logStatus(QLatin1String("QML Profiler: Failed to connect!"));
|
QmlProfilerTool::logState(QLatin1String("QML Profiler: Failed to connect!"));
|
||||||
|
|
||||||
emit connectionFailed();
|
emit connectionFailed();
|
||||||
break;
|
break;
|
||||||
|
@@ -448,7 +448,7 @@ void QmlProfilerTool::startTool(StartMode mode)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void QmlProfilerTool::logStatus(const QString &msg)
|
void QmlProfilerTool::logState(const QString &msg)
|
||||||
{
|
{
|
||||||
MessageManager::write(msg, Core::MessageManager::Flash);
|
MessageManager::write(msg, Core::MessageManager::Flash);
|
||||||
}
|
}
|
||||||
|
@@ -62,7 +62,7 @@ public:
|
|||||||
// display dialogs / log output
|
// display dialogs / log output
|
||||||
static QMessageBox *requestMessageBox();
|
static QMessageBox *requestMessageBox();
|
||||||
static void handleHelpRequest(const QString &link);
|
static void handleHelpRequest(const QString &link);
|
||||||
static void logStatus(const QString &msg);
|
static void logState(const QString &msg);
|
||||||
static void logError(const QString &msg);
|
static void logError(const QString &msg);
|
||||||
static void showNonmodalWarning(const QString &warningMsg);
|
static void showNonmodalWarning(const QString &warningMsg);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user