From 4b1f86f9d0fbcb467f3bd5bc4823fba10e187ade Mon Sep 17 00:00:00 2001 From: cutefishd Date: Mon, 12 Apr 2021 16:18:02 +0800 Subject: [PATCH] Support HiDPI --- src/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 48d6fc1..990f4af 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -91,7 +91,7 @@ QRect MainWindow::windowRect() const : availableGeometry.height() - m_settings->edgeMargins();; int appCount = m_appModel->rowCount(); - int iconSize = m_settings->iconSize(); + qreal iconSize = m_settings->iconSize() * qApp->devicePixelRatio(); int length = appCount * iconSize; if (length > maxLength) {