Initial QT5 Support

Minor fixes


FossilOrigin-Name: 15630ec9d832cd6c843ca0896677120d34879100
This commit is contained in:
kostas
2013-05-14 15:25:12 +00:00
parent e3d38006ea
commit 5f68886c0a
6 changed files with 57 additions and 44 deletions

View File

@@ -223,7 +223,9 @@ Settings::~Settings()
void Settings::ApplyEnvironment()
{
QString lang_id = GetValue(FUEL_SETTING_LANGUAGE).toString();
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
QTextCodec::setCodecForTr(QTextCodec::codecForName("utf8"));
#endif
if(!InstallLang(lang_id))
SetValue(FUEL_SETTING_LANGUAGE, "en_US");
}