2
2
// Distributed under the MIT software license, see the accompanying
3
3
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
4
5
+ #ifdef HAVE_CONFIG_H
6
+ #include < config/bitcoin-config.h>
7
+ #endif
8
+
5
9
#include < qt/guiutil.h>
6
10
7
11
#include < qt/bitcoinaddressvalidator.h>
61
65
#include < QThread>
62
66
#include < QUrlQuery>
63
67
#include < QtGlobal>
68
+ #if USE_QML
69
+ #include < QQuickStyle>
70
+ #endif // USE_QML
64
71
65
72
#include < cassert>
66
73
#include < chrono>
@@ -881,7 +888,7 @@ void LogQtInfo()
881
888
#else
882
889
const std::string plugin_link{" dynamic" };
883
890
#endif
884
- LogPrintf (" Qt %s (%s), plugin=%s (%s)\n " , qVersion (), qt_link, QGuiApplication:: platformName ().toStdString (), plugin_link);
891
+ LogPrintf (" Qt %s (%s), plugin=%s (%s)\n " , qVersion (), qt_link, qGuiApp-> platformName ().toStdString (), plugin_link);
885
892
const auto static_plugins = QPluginLoader::staticPlugins ();
886
893
if (static_plugins.empty ()) {
887
894
LogPrintf (" No static plugins.\n " );
@@ -895,7 +902,12 @@ void LogQtInfo()
895
902
}
896
903
}
897
904
905
+ #if USE_QML
906
+ LogPrintf (" QQuickStyle: %s\n " , QQuickStyle::name ().toStdString ());
907
+ #else
898
908
LogPrintf (" Style: %s / %s\n " , QApplication::style ()->objectName ().toStdString (), QApplication::style ()->metaObject ()->className ());
909
+ #endif // USE_QML
910
+
899
911
LogPrintf (" System: %s, %s\n " , QSysInfo::prettyProductName ().toStdString (), QSysInfo::buildAbi ().toStdString ());
900
912
for (const QScreen* s : QGuiApplication::screens ()) {
901
913
LogPrintf (" Screen: %s %dx%d, pixel ratio=%.1f\n " , s->name ().toStdString (), s->size ().width (), s->size ().height (), s->devicePixelRatio ());
0 commit comments