Ported oracle to Qt5

This commit is contained in:
Fabio Bas 2014-06-24 18:28:09 +02:00
parent 5c13c06982
commit 80f68306b5
4 changed files with 45 additions and 5 deletions

View file

@ -8,9 +8,12 @@ SettingsCache *settingsCache;
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
#if QT_VERSION < 0x050000
// gone in Qt5, all source files _MUST_ be utf8-encoded
QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8"));
#endif
QCoreApplication::setOrganizationName("Cockatrice");
QCoreApplication::setOrganizationDomain("cockatrice");
// this can't be changed, as it influences the default savepath for cards.xml