Commit b4d1e739 authored by Anjani Kumar's avatar Anjani Kumar
Browse files

Add QT_VERSION check for new QButtonGroup signals

parent 6ae3857f
......@@ -90,8 +90,17 @@ FileSaveConflictBox::FileSaveConflictBox(QWidget* const parent)
grid->setContentsMargins(spacing, spacing, spacing, spacing);
grid->setSpacing(spacing);
#if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0))
connect(d->conflictButtonGroup, static_cast<void (QButtonGroup::*)(int)>(&QButtonGroup::idClicked),
this, &FileSaveConflictBox::signalConflictButtonChanged);
#else
connect(d->conflictButtonGroup, static_cast<void (QButtonGroup::*)(int)>(&QButtonGroup::buttonClicked),
this, &FileSaveConflictBox::signalConflictButtonChanged);
#endif
}
FileSaveConflictBox::~FileSaveConflictBox()
......
......@@ -305,9 +305,18 @@ SubjectWidget::SubjectWidget(QWidget* const parent, bool sizeLimited)
connect(d->repSubjectButton, &QPushButton::clicked,
this, &SubjectWidget::slotRepSubject);
#if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0))
connect(d->btnGroup, static_cast<void (QButtonGroup::*)(int)>(&QButtonGroup::idReleased),
this, &SubjectWidget::slotEditOptionChanged);
#else
connect(d->btnGroup, static_cast<void (QButtonGroup::*)(int)>(&QButtonGroup::buttonReleased),
this, &SubjectWidget::slotEditOptionChanged);
#endif
connect(d->refCB, static_cast<void (QComboBox::*)(int)>(&QComboBox::activated),
this, &SubjectWidget::slotRefChanged);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment