Improve some compile warnings.

Remove "-Wdeprecated-copy". Some compilers don't support.
Support both QButtonGroup::buttonClicked() and
QButtonGroup::idClicked(), depending on which vesion of
QT is installed.
This commit is contained in:
Ernie Pasveer
2022-05-02 19:57:17 -05:00
parent d9fa62e7be
commit fa5335ba68
4 changed files with 19 additions and 1 deletions
+6
View File
@@ -5,6 +5,7 @@
#include <QtWidgets/QFileDialog>
#include <QtCore/QDir>
#include <QtCore/QDebug>
#include <QtGlobal>
SeerDebugDialog::SeerDebugDialog (QWidget* parent) : QDialog(parent) {
@@ -33,7 +34,12 @@ SeerDebugDialog::SeerDebugDialog (QWidget* parent) : QDialog(parent) {
QObject::connect(loadBreakpointsFilenameToolButton, &QToolButton::clicked, this, &SeerDebugDialog::handleLoadBreakpointsFilenameToolButton);
QObject::connect(loadCoreFilenameToolButton, &QToolButton::clicked, this, &SeerDebugDialog::handleLoadCoreFilenameToolButton);
QObject::connect(attachProgramPidToolButton, &QToolButton::clicked, this, &SeerDebugDialog::handleProgramPidToolButton);
#if (QT_VERSION >= QT_VERSION_CHECK(5, 12, 0))
QObject::connect(_runModeButtonGroup, QOverload<int>::of(&QButtonGroup::idClicked), this, &SeerDebugDialog::handleRunModeChanged);
#else
QObject::connect(_runModeButtonGroup, QOverload<int>::of(&QButtonGroup::buttonClicked), this, &SeerDebugDialog::handleRunModeChanged);
#endif
// Set initial run mode.
handleRunModeChanged(-1);