Skip to content

Commit

Permalink
Fix QML widget being too wide in hidpi
Browse files Browse the repository at this point in the history
We don't need to multiply by the devicePixelRatio here
  • Loading branch information
tsdgeos authored and albertvaka committed Oct 13, 2024
1 parent 9ad5b56 commit 3242a5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kcm/kcm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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")));
Expand Down

0 comments on commit 3242a5b

Please sign in to comment.