Commit 2e372499 authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Use signal introduced in Qt 5.15 to simplify connect call

GnuPG-bug-id: 5283
parent 2831423b
......@@ -323,10 +323,8 @@ public:
smimeBtn->setChecked(presetProtocol == GpgME::CMS);
}
QObject::connect (mFormatBtns, static_cast<void (QButtonGroup::*)(QAbstractButton *, bool)> (&QButtonGroup::buttonToggled),
q, [this](QAbstractButton *, bool) {
updateWidgetVisibility();
});
QObject::connect(mFormatBtns, &QButtonGroup::idToggled,
q, [this](int, bool) { updateWidgetVisibility(); });
mMainLay->addWidget(mScrollArea);
......
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