Apply the logical DPI factor to the MainWindow contents margins
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user