diff options
author | Christian Kandeler <christian.kandeler@digia.com> | 2014-08-29 13:18:41 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@digia.com> | 2014-09-08 10:33:25 +0200 |
commit | 847f10e9ccc8c3541782a790e04c85c6b4c701da (patch) | |
tree | e59ebac8dfb77c88d8e5540855836ca79a9a7a91 /src/app | |
parent | 6f58e5b798e368e6254cc837e489bd8fd8f066e9 (diff) | |
download | qt-creator-847f10e9ccc8c3541782a790e04c85c6b4c701da.tar.gz |
Remove Qt version checks.
Qt 5.3 is the minimum requirement these days. Remove all fallback code
from sources and project files.
Change-Id: If6188a471197acadda4d6baee71804ba1a8026c6
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Diffstat (limited to 'src/app')
-rw-r--r-- | src/app/main.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/app/main.cpp b/src/app/main.cpp index eeb4e56a8b..06c925b4b1 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -309,9 +309,7 @@ int main(int argc, char **argv) QtSystemExceptionHandler systemExceptionHandler; #endif -#if QT_VERSION >= 0x050100 app.setAttribute(Qt::AA_UseHighDpiPixmaps); -#endif // Manually determine -settingspath command line option // We can't use the regular way of the plugin manager, because that needs to parse plugin meta data @@ -365,23 +363,14 @@ int main(int argc, char **argv) QTranslator translator; QTranslator qtTranslator; QStringList uiLanguages; -// uiLanguages crashes on Windows with 4.8.0 release builds -#if (QT_VERSION >= 0x040801) || (QT_VERSION >= 0x040800 && !defined(Q_OS_WIN)) uiLanguages = QLocale::system().uiLanguages(); -#else - uiLanguages << QLocale::system().name(); -#endif QString overrideLanguage = settings->value(QLatin1String("General/OverrideLanguage")).toString(); if (!overrideLanguage.isEmpty()) uiLanguages.prepend(overrideLanguage); const QString &creatorTrPath = QCoreApplication::applicationDirPath() + QLatin1String(SHARE_PATH "/translations"); foreach (QString locale, uiLanguages) { -#if (QT_VERSION >= 0x050000) locale = QLocale(locale).name(); -#else - locale.replace(QLatin1Char('-'), QLatin1Char('_')); // work around QTBUG-25973 -#endif if (translator.load(QLatin1String("qtcreator_") + locale, creatorTrPath)) { const QString &qtTrPath = QLibraryInfo::location(QLibraryInfo::TranslationsPath); const QString &qtTrFile = QLatin1String("qt_") + locale; |