summaryrefslogtreecommitdiff
path: root/utils/rbutilqt/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/rbutilqt/main.cpp')
-rw-r--r--utils/rbutilqt/main.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/utils/rbutilqt/main.cpp b/utils/rbutilqt/main.cpp
index 47c625b54d..cdee3af81d 100644
--- a/utils/rbutilqt/main.cpp
+++ b/utils/rbutilqt/main.cpp
@@ -39,7 +39,7 @@ Q_IMPORT_PLUGIN(AccessibleFactory)
39 39
40 40
41int main( int argc, char ** argv ) { 41int main( int argc, char ** argv ) {
42#if QT_VERSION >= 0x050600 42#if QT_VERSION >= 0x050600 && QT_VERSION < 0x060000
43 QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); 43 QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
44 QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); 44 QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
45#endif 45#endif
@@ -83,7 +83,12 @@ int main( int argc, char ** argv ) {
83 if(!translator.load("rbutil_" + applang, absolutePath)) 83 if(!translator.load("rbutil_" + applang, absolutePath))
84 translator.load("rbutil_" + applang, ":/lang"); 84 translator.load("rbutil_" + applang, ":/lang");
85 if(!qttrans.load("qt_" + applang, 85 if(!qttrans.load("qt_" + applang,
86 QLibraryInfo::location(QLibraryInfo::TranslationsPath))) 86#if QT_VERSION >= 0x060000
87 QLibraryInfo::path(QLibraryInfo::TranslationsPath)
88#else
89 QLibraryInfo::location(QLibraryInfo::TranslationsPath)
90#endif
91 ))
87 qttrans.load("qt_" + applang, ":/lang"); 92 qttrans.load("qt_" + applang, ":/lang");
88 93
89 QLocale::setDefault(QLocale(applang)); 94 QLocale::setDefault(QLocale(applang));