forked from qt-creator/qt-creator
QML-Debugger: Compile with QT_NO_CAST_FROM_ASCII.
Change-Id: Id6f437c54504f6730c8726264f460b8f1631899d Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -271,7 +271,7 @@ void QmlEngine::retryMessageBoxFinished(int result)
|
||||
}
|
||||
case QMessageBox::Help: {
|
||||
Core::HelpManager *helpManager = Core::HelpManager::instance();
|
||||
helpManager->handleHelpRequest("qthelp://com.nokia.qtcreator/doc/creator-debugging-qml.html");
|
||||
helpManager->handleHelpRequest(QLatin1String("qthelp://com.nokia.qtcreator/doc/creator-debugging-qml.html"));
|
||||
// fall through
|
||||
}
|
||||
default:
|
||||
@@ -830,17 +830,13 @@ void QmlEngine::executeDebuggerCommand(const QString& command)
|
||||
|
||||
QString QmlEngine::qmlImportPath() const
|
||||
{
|
||||
return startParameters().environment.value("QML_IMPORT_PATH");
|
||||
return startParameters().environment.value(QLatin1String("QML_IMPORT_PATH"));
|
||||
}
|
||||
|
||||
void QmlEngine::logMessage(const QString &service, LogDirection direction, const QString &message)
|
||||
{
|
||||
QString msg = service;
|
||||
if (direction == LogSend) {
|
||||
msg += ": sending ";
|
||||
} else {
|
||||
msg += ": receiving ";
|
||||
}
|
||||
msg += direction == LogSend ? QLatin1String(": sending ") : QLatin1String(": receiving ");
|
||||
msg += message;
|
||||
showMessage(msg, LogDebug);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user