Skip to content

Commit

Permalink
Fix strict build for >= or < qt 5.15
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <[email protected]>
  • Loading branch information
falkTX committed Sep 26, 2020
1 parent 6b41edb commit c6bd01d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/bridges-ui/CarlaBridgeToolkitQt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,11 @@ class CarlaBridgeToolkitQt: public QObject,

fApp = new QApplication(qargc, qargv);

#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
fWindow = new QMainWindow(nullptr);
#else
fWindow = new QMainWindow(nullptr, nullptr);
#endif
fWindow->resize(30, 30);
fWindow->hide();

Expand Down

0 comments on commit c6bd01d

Please sign in to comment.