diff --git a/build-aux/m4/bitcoin_qt.m4 b/build-aux/m4/bitcoin_qt.m4 index 061175c7b2..0a6ed6c187 100644 --- a/build-aux/m4/bitcoin_qt.m4 +++ b/build-aux/m4/bitcoin_qt.m4 @@ -291,7 +291,7 @@ AC_DEFUN([_BITCOIN_QT_CHECK_QT5],[ #endif ]], [[ - #if QT_VERSION < 0x050000 + #if QT_VERSION < 0x050200 || QT_VERSION_MAJOR < 5 choke #endif ]])], diff --git a/src/qt/dash.cpp b/src/qt/dash.cpp index 29e9210128..1790978c9e 100644 --- a/src/qt/dash.cpp +++ b/src/qt/dash.cpp @@ -566,14 +566,12 @@ int main(int argc, char *argv[]) // Do not refer to data directory yet, this can be overridden by Intro::pickDataDirectory - /// 1. Basic Qt initialization (not dependent on parameters or configuration) + /// 2. Basic Qt initialization (not dependent on parameters or configuration) Q_INIT_RESOURCE(dash); Q_INIT_RESOURCE(dash_locale); -#if QT_VERSION > 0x050100 // Generate high-dpi pixmaps QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); -#endif #if QT_VERSION >= 0x050600 QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); #endif diff --git a/src/qt/guiutil.cpp b/src/qt/guiutil.cpp index 0ad55eed71..861c069fbd 100644 --- a/src/qt/guiutil.cpp +++ b/src/qt/guiutil.cpp @@ -47,6 +47,8 @@ #include #include #include +#include +#include #include #include #include // for Qt::mightBeRichText @@ -54,11 +56,6 @@ #include #include - -#if QT_VERSION >= 0x50200 -#include -#endif - static fs::detail::utf8_codecvt_facet utf8; #if defined(Q_OS_MAC) @@ -150,13 +147,7 @@ QString dateTimeStr(qint64 nTime) QFont fixedPitchFont() { -#if QT_VERSION >= 0x50200 return QFontDatabase::systemFont(QFontDatabase::FixedFont); -#else - QFont font("Monospace"); - font.setStyleHint(QFont::Monospace); - return font; -#endif } // Just some dummy data to generate an convincing random-looking (but consistent) address