Skip to content

Commit 2c0b6d3

Browse files
GUI - fix building with Qt5 before 5.14
1 parent 8c718d4 commit 2c0b6d3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/gui/qt/mainwindow.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2916,7 +2916,11 @@ void MainWindow::createToolBar()
29162916
QStringList available_languages = sonicPii18n->getAvailableLanguages();
29172917

29182918
langActionGroup = new QActionGroup(this);
2919+
#if (QT_VERSION >= QT_VERSION_CHECK(5, 14, 0))
29192920
langActionGroup->setExclusionPolicy(QActionGroup::ExclusionPolicy::Exclusive);
2921+
#else
2922+
langActionGroup->setExclusive(true);
2923+
#endif
29202924

29212925
QSignalMapper *signalMapper = new QSignalMapper(this);
29222926

0 commit comments

Comments
 (0)