mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-22 15:04:44 +01:00
qt: Replace deprecated LogPrintf with LogInfo in GUIUtil::LogQtInfo()
This commit is contained in:
parent
b3d3ae0680
commit
7231c7630e
1 changed files with 7 additions and 7 deletions
|
@ -916,24 +916,24 @@ void LogQtInfo()
|
|||
#else
|
||||
const std::string qt_link{"dynamic"};
|
||||
#endif
|
||||
LogPrintf("Qt %s (%s), plugin=%s\n", qVersion(), qt_link, QGuiApplication::platformName().toStdString());
|
||||
LogInfo("Qt %s (%s), plugin=%s\n", qVersion(), qt_link, QGuiApplication::platformName().toStdString());
|
||||
const auto static_plugins = QPluginLoader::staticPlugins();
|
||||
if (static_plugins.empty()) {
|
||||
LogPrintf("No static plugins.\n");
|
||||
LogInfo("No static plugins.\n");
|
||||
} else {
|
||||
LogPrintf("Static plugins:\n");
|
||||
LogInfo("Static plugins:\n");
|
||||
for (const QStaticPlugin& p : static_plugins) {
|
||||
QJsonObject meta_data = p.metaData();
|
||||
const std::string plugin_class = meta_data.take(QString("className")).toString().toStdString();
|
||||
const int plugin_version = meta_data.take(QString("version")).toInt();
|
||||
LogPrintf(" %s, version %d\n", plugin_class, plugin_version);
|
||||
LogInfo(" %s, version %d\n", plugin_class, plugin_version);
|
||||
}
|
||||
}
|
||||
|
||||
LogPrintf("Style: %s / %s\n", QApplication::style()->objectName().toStdString(), QApplication::style()->metaObject()->className());
|
||||
LogPrintf("System: %s, %s\n", QSysInfo::prettyProductName().toStdString(), QSysInfo::buildAbi().toStdString());
|
||||
LogInfo("Style: %s / %s\n", QApplication::style()->objectName().toStdString(), QApplication::style()->metaObject()->className());
|
||||
LogInfo("System: %s, %s\n", QSysInfo::prettyProductName().toStdString(), QSysInfo::buildAbi().toStdString());
|
||||
for (const QScreen* s : QGuiApplication::screens()) {
|
||||
LogPrintf("Screen: %s %dx%d, pixel ratio=%.1f\n", s->name().toStdString(), s->size().width(), s->size().height(), s->devicePixelRatio());
|
||||
LogInfo("Screen: %s %dx%d, pixel ratio=%.1f\n", s->name().toStdString(), s->size().width(), s->size().height(), s->devicePixelRatio());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue