|
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 |
| -#include <config/bitcoin-config.h> // IWYU pragma: keep |
6 |
| - |
7 | 5 | #include <qt/guiutil.h>
|
8 | 6 |
|
9 | 7 | #include <qt/bitcoinaddressvalidator.h>
|
@@ -918,29 +916,24 @@ void LogQtInfo()
|
918 | 916 | #else
|
919 | 917 | const std::string qt_link{"dynamic"};
|
920 | 918 | #endif
|
921 |
| -#ifdef QT_STATICPLUGIN |
922 |
| - const std::string plugin_link{"static"}; |
923 |
| -#else |
924 |
| - const std::string plugin_link{"dynamic"}; |
925 |
| -#endif |
926 |
| - LogPrintf("Qt %s (%s), plugin=%s (%s)\n", qVersion(), qt_link, QGuiApplication::platformName().toStdString(), plugin_link); |
| 919 | + LogInfo("Qt %s (%s), plugin=%s\n", qVersion(), qt_link, QGuiApplication::platformName().toStdString()); |
927 | 920 | const auto static_plugins = QPluginLoader::staticPlugins();
|
928 | 921 | if (static_plugins.empty()) {
|
929 |
| - LogPrintf("No static plugins.\n"); |
| 922 | + LogInfo("No static plugins.\n"); |
930 | 923 | } else {
|
931 |
| - LogPrintf("Static plugins:\n"); |
| 924 | + LogInfo("Static plugins:\n"); |
932 | 925 | for (const QStaticPlugin& p : static_plugins) {
|
933 | 926 | QJsonObject meta_data = p.metaData();
|
934 | 927 | const std::string plugin_class = meta_data.take(QString("className")).toString().toStdString();
|
935 | 928 | const int plugin_version = meta_data.take(QString("version")).toInt();
|
936 |
| - LogPrintf(" %s, version %d\n", plugin_class, plugin_version); |
| 929 | + LogInfo(" %s, version %d\n", plugin_class, plugin_version); |
937 | 930 | }
|
938 | 931 | }
|
939 | 932 |
|
940 |
| - LogPrintf("Style: %s / %s\n", QApplication::style()->objectName().toStdString(), QApplication::style()->metaObject()->className()); |
941 |
| - LogPrintf("System: %s, %s\n", QSysInfo::prettyProductName().toStdString(), QSysInfo::buildAbi().toStdString()); |
| 933 | + LogInfo("Style: %s / %s\n", QApplication::style()->objectName().toStdString(), QApplication::style()->metaObject()->className()); |
| 934 | + LogInfo("System: %s, %s\n", QSysInfo::prettyProductName().toStdString(), QSysInfo::buildAbi().toStdString()); |
942 | 935 | for (const QScreen* s : QGuiApplication::screens()) {
|
943 |
| - LogPrintf("Screen: %s %dx%d, pixel ratio=%.1f\n", s->name().toStdString(), s->size().width(), s->size().height(), s->devicePixelRatio()); |
| 936 | + LogInfo("Screen: %s %dx%d, pixel ratio=%.1f\n", s->name().toStdString(), s->size().width(), s->size().height(), s->devicePixelRatio()); |
944 | 937 | }
|
945 | 938 | }
|
946 | 939 |
|
|
0 commit comments