mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-25 16:06:31 +00:00
Enable QT_NO_CAST_FROM_ASCII & QT_NO_CAST_TO_ASCII
* Added a couple of utility macros to help with the conversion. lit() is paired with tr() for untranslated text. * QFormatStr is more explicitly for non-textual formatting strings. * Both are just #define'd to QStringLiteral()
This commit is contained in:
@@ -34,11 +34,11 @@ static QString GetTypeString(const EnvironmentModification &env)
|
||||
QString ret;
|
||||
|
||||
if(env.mod == EnvMod::Append)
|
||||
ret = QString("Append, %1").arg(ToQStr(env.sep));
|
||||
ret = QApplication::translate("EnvironmentModification", "Append, %1").arg(ToQStr(env.sep));
|
||||
else if(env.mod == EnvMod::Prepend)
|
||||
ret = QString("Prepend, %1").arg(ToQStr(env.sep));
|
||||
ret = QApplication::translate("EnvironmentModification", "Prepend, %1").arg(ToQStr(env.sep));
|
||||
else
|
||||
ret = "Set";
|
||||
ret = QApplication::translate("EnvironmentModification", "Set");
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user