From 3242a5bebc48b0812fdfc9990607b0895f804a37 Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Sat, 12 Oct 2024 11:48:25 +0200 Subject: [PATCH] Fix QML widget being too wide in hidpi We don't need to multiply by the devicePixelRatio here --- kcm/kcm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kcm/kcm.cpp b/kcm/kcm.cpp index 05d9297b9..37601fdb9 100644 --- a/kcm/kcm.cpp +++ b/kcm/kcm.cpp @@ -55,7 +55,7 @@ KdeConnectKcm::KdeConnectKcm(QObject *parent, const KPluginMetaData &md, const Q sortProxyModel = new DevicesSortProxyModel(devicesModel); - kcmUi.list_quick_widget->setMinimumWidth(250 * kcmUi.list_quick_widget->devicePixelRatio()); + kcmUi.list_quick_widget->setMinimumWidth(250); kcmUi.list_quick_widget->rootContext()->setContextObject(new KLocalizedContext(kcmUi.list_quick_widget)); kcmUi.list_quick_widget->setClearColor(kcmUi.list_quick_widget->palette().color(QPalette::Window)); kcmUi.list_quick_widget->setSource(QUrl(QStringLiteral("qrc:/kdeconnectkcm/list.qml")));