From 2d85e238f924943a793e305efcb77dec540c578f Mon Sep 17 00:00:00 2001 From: deepin-ci-robot Date: Thu, 5 Dec 2024 10:01:22 +0000 Subject: [PATCH] sync: from linuxdeepin/qt5platform-plugins Synchronize source files from linuxdeepin/qt5platform-plugins. Source-pull-request: https://github.com/linuxdeepin/qt5platform-plugins/pull/264 --- xcb/dhighdpi.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xcb/dhighdpi.cpp b/xcb/dhighdpi.cpp index 5e4df97..3b89932 100644 --- a/xcb/dhighdpi.cpp +++ b/xcb/dhighdpi.cpp @@ -104,7 +104,8 @@ QDpi DHighDpi::logicalDpi(QXcbScreen *s) } int dpi = 0; - QVariant value = DPlatformIntegration::xSettings(s->connection())->setting("Qt/DPI/" + s->name().toLocal8Bit()); + const QString screenName(QString("Qt/DPI/%1").arg(s->name())); + QVariant value = DPlatformIntegration::xSettings(s->connection())->setting(screenName.toLocal8Bit()); bool ok = false; dpi = value.toInt(&ok);