diff options
-rw-r--r-- | src/frontend/qt_sdl/VideoSettingsDialog.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/frontend/qt_sdl/VideoSettingsDialog.cpp b/src/frontend/qt_sdl/VideoSettingsDialog.cpp index 0ea6f15..875b0e4 100644 --- a/src/frontend/qt_sdl/VideoSettingsDialog.cpp +++ b/src/frontend/qt_sdl/VideoSettingsDialog.cpp @@ -18,6 +18,7 @@ #include <stdio.h> #include <QFileDialog> +#include <QtGlobal> #include "types.h" #include "Platform.h" @@ -47,7 +48,11 @@ VideoSettingsDialog::VideoSettingsDialog(QWidget* parent) : QDialog(parent), ui( grp3DRenderer = new QButtonGroup(this); grp3DRenderer->addButton(ui->rb3DSoftware, 0); grp3DRenderer->addButton(ui->rb3DOpenGL, 1); +#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0) + connect(grp3DRenderer, SIGNAL(buttonClicked(int)), this, SLOT(onChange3DRenderer(int))); +#else connect(grp3DRenderer, SIGNAL(idClicked(int)), this, SLOT(onChange3DRenderer(int))); +#endif grp3DRenderer->button(Config::_3DRenderer)->setChecked(true); #ifndef OGLRENDERER_ENABLED |