Charlie Jiang pushed to branch gsoc-2022-chariri-3 at FreeType / FreeType Demo Programs
Commits:
-
c50ecd6f
by Charlie Jiang at 2022-08-27T23:33:57+08:00
1 changed file:
Changes:
... | ... | @@ -11,6 +11,7 @@ |
11 | 11 | #include <QMessageBox>
|
12 | 12 | #include <QSettings>
|
13 | 13 | #include <QScrollBar>
|
14 | +#include <QDesktopWidget>
|
|
14 | 15 | #include <QMimeData>
|
15 | 16 | |
16 | 17 | #include <freetype/ftdriver.h>
|
... | ... | @@ -319,8 +320,7 @@ MainGUI::createLayout() |
319 | 320 | |
320 | 321 | ftinspectLayout_->setSizeConstraint(QLayout::SetNoConstraint);
|
321 | 322 | layout()->setSizeConstraint(QLayout::SetNoConstraint);
|
322 | - ftinspectWidget_->resize(1400, 900);
|
|
323 | - resize(1400, 900);
|
|
323 | + resize(1400 * logicalDpiX() / 96, 700 * logicalDpiY() / 96);
|
|
324 | 324 | |
325 | 325 | statusBar()->hide(); // remove the extra space
|
326 | 326 | setCentralWidget(ftinspectWidget_);
|