QString::toAscii() is obsolete in Qt5. Replace it with toLatin1().
This change is Qt4/Qt5 neutral.
This commit is contained in:
committed by
wmayer
parent
8a7768a04a
commit
0695552cff
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user