Skip to content

Commit

Permalink
Fix build with Qt 5.14
Browse files Browse the repository at this point in the history
Port to Qt 5.14 API changes
  • Loading branch information
antonio-rojas authored and kegechen committed Apr 27, 2020
1 parent a86d5eb commit efd0dda
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions platformthemeplugin/qdeepintheme.cpp
Expand Up @@ -612,10 +612,18 @@ static bool updateScreenScaleFactors(DThemeSettings *s, const QByteArray &value,
}

QHighDpiScaling::updateHighDpiScaling();
#if QT_VERSION < QT_VERSION_CHECK(5,14,0)
qDebug() << QHighDpiScaling::logicalDpi();
#else
qDebug() << QHighDpiScaling::logicalDpi(QGuiApplication::primaryScreen());
#endif
updateScaleLogcailDpi(s->scaleLogicalDpi());

#if QT_VERSION < QT_VERSION_CHECK(5,14,0)
qDebug() << QHighDpiScaling::logicalDpi();
#else
qDebug() << QHighDpiScaling::logicalDpi(QGuiApplication::primaryScreen());
#endif

return true;
}
Expand Down

0 comments on commit efd0dda

Please sign in to comment.