Apply the logical DPI factor to the MainWindow contents margins

This commit is contained in:
Sergio Martins
2021-02-21 23:29:49 +00:00
parent 6047275cfa
commit f544ac58e6
2 changed files with 46 additions and 34 deletions

View File

@@ -94,7 +94,7 @@ protected:
virtual void onCloseEvent(QCloseEvent *);
};
inline qreal logicalDpiFactor(QWidget *w)
inline qreal logicalDpiFactor(const QWidget *w)
{
#ifdef Q_OS_MACOS
// It's always 72 on mac
@@ -103,7 +103,6 @@ inline qreal logicalDpiFactor(QWidget *w)
return w->logicalDpiX() / 96.0;
#endif
}
}
#endif