buttonClicked workaround for old Qt

This commit is contained in:
Nadia Holmquist Pedersen 2021-09-17 18:35:57 +02:00
parent 35e93d5fec
commit 1471c73ea6
1 changed files with 5 additions and 0 deletions

View File

@ -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