@@ -90,12 +90,7 @@ static void RegisterMetaTypes()
9090 qRegisterMetaType<std::function<void ()>>(" std::function<void()>" );
9191 qRegisterMetaType<QMessageBox::Icon>(" QMessageBox::Icon" );
9292 qRegisterMetaType<interfaces::BlockAndHeaderTipInfo>(" interfaces::BlockAndHeaderTipInfo" );
93-
94- #if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
95- qRegisterMetaTypeStreamOperators<BitcoinUnit>(" BitcoinUnit" );
96- #else
9793 qRegisterMetaType<BitcoinUnit>(" BitcoinUnit" );
98- #endif
9994}
10095
10196static QString GetLangTerritory ()
@@ -134,11 +129,7 @@ static void initTranslations(QTranslator &qtTranslatorBase, QTranslator &qtTrans
134129 // - First load the translator for the base language, without territory
135130 // - Then load the more specific locale translator
136131
137- #if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
138- const QString translation_path{QLibraryInfo::location (QLibraryInfo::TranslationsPath)};
139- #else
140132 const QString translation_path{QLibraryInfo::path (QLibraryInfo::TranslationsPath)};
141- #endif
142133 // Load e.g. qt_de.qm
143134 if (qtTranslatorBase.load (" qt_" + lang, translation_path)) {
144135 QApplication::installTranslator (&qtTranslatorBase);
@@ -508,12 +499,6 @@ int GuiMain(int argc, char* argv[])
508499 Q_INIT_RESOURCE (bitcoin);
509500 Q_INIT_RESOURCE (bitcoin_locale);
510501
511- #if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
512- // Generate high-dpi pixmaps
513- QApplication::setAttribute (Qt::AA_UseHighDpiPixmaps);
514- QCoreApplication::setAttribute (Qt::AA_EnableHighDpiScaling);
515- #endif
516-
517502#if defined(QT_QPA_PLATFORM_ANDROID)
518503 QApplication::setAttribute (Qt::AA_DontUseNativeMenuBar);
519504 QApplication::setAttribute (Qt::AA_DontCreateNativeWidgetSiblings);
0 commit comments