Commit 7a84ca99 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Make it compile with qt5.15

parent 6eb9cbf6
...@@ -70,9 +70,10 @@ GeneralOptionsPage::GeneralOptionsPage(QWidget *parent) : ...@@ -70,9 +70,10 @@ GeneralOptionsPage::GeneralOptionsPage(QWidget *parent) :
// We are missing a button on Wayland // We are missing a button on Wayland
button ? button->setChecked(true) : takeNew->setChecked(true); button ? button->setChecked(true) : takeNew->setChecked(true);
}); });
connect(printKeyActionGroup, qOverload<int, bool>(&QButtonGroup::buttonToggled), connect(printKeyActionGroup, qOverload<QAbstractButton *, bool>(&QButtonGroup::buttonToggled),
workaroundLabel, [workaroundLabel] (int value, bool checked) { workaroundLabel, [workaroundLabel, printKeyActionGroup] (QAbstractButton *button, bool checked) {
if (checked) { if (checked) {
const int value = printKeyActionGroup->id(button);
workaroundLabel->setText(QString::number(value)); workaroundLabel->setText(QString::number(value));
} }
}); });
......
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