Browse Source

Merge pull request #4 from kvazar-network/fix-qt-dpi-warning

fix EnableHighDpiScaling init
kvazar kvazar-1.0.1
d47081 3 months ago committed by GitHub
parent
commit
d8b3bf3ad3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      src/qt/bitcoin.cpp

3
src/qt/bitcoin.cpp

@ -561,7 +561,6 @@ int main(int argc, char *argv[]) @@ -561,7 +561,6 @@ int main(int argc, char *argv[])
Q_INIT_RESOURCE(bitcoin);
Q_INIT_RESOURCE(bitcoin_locale);
BitcoinApplication app(argc, argv);
#if QT_VERSION > 0x050100
// Generate high-dpi pixmaps
QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
@ -573,6 +572,8 @@ int main(int argc, char *argv[]) @@ -573,6 +572,8 @@ int main(int argc, char *argv[])
QApplication::setAttribute(Qt::AA_DontShowIconsInMenus);
#endif
BitcoinApplication app(argc, argv);
// Register meta types used for QMetaObject::invokeMethod
qRegisterMetaType< bool* >();
// Need to pass name here as CAmount is a typedef (see http://qt-project.org/doc/qt-5/qmetatype.html#qRegisterMetaType)

Loading…
Cancel
Save