Support HiDPI
This commit is contained in:
parent
c2a27847cb
commit
4b1f86f9d0
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue