QmlProfiler: rename logStatus to logState for consistency

Change-Id: Ic9a19028fc4bde03619296a90f8251e2d6ad1240
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
Ulf Hermann
2014-05-06 15:44:34 +02:00
parent 031666c670
commit 0ef1b78724
3 changed files with 6 additions and 6 deletions

View File

@@ -307,7 +307,7 @@ void QmlProfilerClientManager::connectionStateChanged()
case QAbstractSocket::ConnectingState: {
if (QmlProfilerPlugin::debugOutput)
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)));
break;
}
@@ -317,7 +317,7 @@ void QmlProfilerClientManager::connectionStateChanged()
qWarning("QML Profiler: connected and running");
// notify the client recording status
clientRecordingChanged();
QmlProfilerTool::logStatus(tr("QML Profiler: connected and running"));
QmlProfilerTool::logState(tr("QML Profiler: connected and running"));
break;
}
case QAbstractSocket::ClosingState:
@@ -344,9 +344,9 @@ void QmlProfilerClientManager::retryMessageBoxFinished(int result)
}
default: {
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
QmlProfilerTool::logStatus(QLatin1String("QML Profiler: Failed to connect!"));
QmlProfilerTool::logState(QLatin1String("QML Profiler: Failed to connect!"));
emit connectionFailed();
break;

View File

@@ -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);
}

View File

@@ -62,7 +62,7 @@ public:
// display dialogs / log output
static QMessageBox *requestMessageBox();
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 showNonmodalWarning(const QString &warningMsg);