mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
Add preprocessor to check Qt version
Use to check if Qt is 5.14 for using QGuiApplication::setHighDpiScaleFactorRoundingPolicy
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user