mirror of
https://github.com/YACReader/yacreader
synced 2025-05-27 19:00:29 -04:00
Use Qt::HighDpiScaleFactorRoundingPolicy::PassThrough
It will be the default in Qt6 and respecting the scale factor that the user sets is the right thing to do.
This commit is contained in:
parent
f27de78fe1
commit
9e9f035f35
@ -95,7 +95,6 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
|
||||
|
||||
QApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
|
||||
|
||||
#if defined(_MSC_VER) && defined(_DEBUG)
|
||||
|
@ -126,6 +126,7 @@ int main(int argc, char **argv)
|
||||
}
|
||||
|
||||
QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
|
||||
QApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
|
||||
|
||||
QApplication app(argc, argv);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user