2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Use QT_DEPRECATED_WARNINGS_SINCE

This commit is contained in:
Ilya Fedin
2023-02-10 11:39:13 +04:00
committed by John Preston
parent 29d93d348c
commit 96ef82272b
4 changed files with 9 additions and 13 deletions

View File

@@ -324,7 +324,10 @@ void Launcher::initHighDpi() {
qputenv("QT_DPI_ADJUSTMENT_POLICY", "AdjustDpi");
#endif // Qt < 6.2.0
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling, true);
#endif // Qt < 6.0.0
if (OptionFractionalScalingEnabled.value()) {
QApplication::setHighDpiScaleFactorRoundingPolicy(
Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);