Add preprocessor to check Qt version

Use to check if Qt is 5.14 for using
QGuiApplication::setHighDpiScaleFactorRoundingPolicy
This commit is contained in:
joshua
2021-12-04 19:12:11 +01:00
parent 1073ebeebc
commit c744356b0f
3 changed files with 6 additions and 1 deletions

View File

@@ -22,7 +22,7 @@
namespace QetSettings
{
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
/**
* @brief setHdpiScaleFactorRoundingPolicy
* Write the value of HdpiScaleFactorRoundingPolicy in
@@ -106,4 +106,5 @@ namespace QetSettings
return default_policy;
}
}
#endif
}