QString::toAscii() is obsolete in Qt5. Replace it with toLatin1().

This change is Qt4/Qt5 neutral.
This commit is contained in:
Mateusz Skowroński
2015-12-15 06:58:54 +01:00
committed by wmayer
parent 8a7768a04a
commit 0695552cff
61 changed files with 191 additions and 191 deletions

View File

@@ -719,7 +719,7 @@ void RecentFilesAction::activateFile(int id)
// invokes appendFile()
SelectModule::Dict dict = SelectModule::importHandler(filename);
for (SelectModule::Dict::iterator it = dict.begin(); it != dict.end(); ++it) {
Application::Instance->open(it.key().toUtf8(), it.value().toAscii());
Application::Instance->open(it.key().toUtf8(), it.value().toLatin1());
break;
}
}
@@ -773,7 +773,7 @@ void RecentFilesAction::save()
QString value = recentFiles[index]->toolTip();
if (value.isEmpty())
break;
hGrp->SetASCII(key.toAscii(), value.toUtf8());
hGrp->SetASCII(key.toLatin1(), value.toUtf8());
}
}