Support HiDPI

This commit is contained in:
cutefishd 2021-04-12 16:18:02 +08:00
parent c2a27847cb
commit 4b1f86f9d0

View file

@ -91,7 +91,7 @@ QRect MainWindow::windowRect() const
: availableGeometry.height() - m_settings->edgeMargins();; : availableGeometry.height() - m_settings->edgeMargins();;
int appCount = m_appModel->rowCount(); int appCount = m_appModel->rowCount();
int iconSize = m_settings->iconSize(); qreal iconSize = m_settings->iconSize() * qApp->devicePixelRatio();
int length = appCount * iconSize; int length = appCount * iconSize;
if (length > maxLength) { if (length > maxLength) {