QmlJSTools: Compile with QT_NO_CAST_FROM_ASCII

Change-Id: I370075ce75682ea11790a8f91339a01fb3c247f9
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
This commit is contained in:
Orgad Shaneh
2012-11-21 22:43:22 +02:00
committed by Friedemann Kleint
parent cdf5a10d4e
commit 75a3728254
11 changed files with 34 additions and 35 deletions

View File

@@ -132,14 +132,14 @@ ExtensionSystem::IPlugin::ShutdownFlag QmlJSToolsPlugin::aboutToShutdown()
void QmlJSToolsPlugin::onTaskStarted(const QString &type)
{
if (type == QmlJSTools::Constants::TASK_INDEX) {
if (type == QLatin1String(QmlJSTools::Constants::TASK_INDEX)) {
m_resetCodeModelAction->setEnabled(false);
}
}
void QmlJSToolsPlugin::onAllTasksFinished(const QString &type)
{
if (type == QmlJSTools::Constants::TASK_INDEX) {
if (type == QLatin1String(QmlJSTools::Constants::TASK_INDEX)) {
m_resetCodeModelAction->setEnabled(true);
}
}