Skip to content

Commit

Permalink
Fix building for old Qt
Browse files Browse the repository at this point in the history
  • Loading branch information
Dman95 committed Mar 3, 2023
1 parent 67cccdc commit 9f0b260
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@
int main(int argc, char *argv[])
{
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
#endif
QtSingleApplication a(argc, argv);
QSettings settings("SASM Project", "SASM");
QPalette palette;
Expand Down

0 comments on commit 9f0b260

Please sign in to comment.