Commit 56bdf331 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Make it compile with qt5.15

parent b4f8868b
......@@ -491,7 +491,7 @@ AppearancePageLayoutTab::AppearancePageLayoutTab(QWidget *parent)
mFolderListGroup = new QButtonGroup(this),
Qt::Vertical, KMailSettings::self()->folderListItem());
vlay->addWidget(mFolderListGroupBox);
connect(mFolderListGroup, qOverload<int>(&QButtonGroup::buttonClicked), this, &ConfigModuleTab::slotEmitChanged);
connect(mFolderListGroup, qOverload<QAbstractButton *>(&QButtonGroup::buttonClicked), this, &ConfigModuleTab::slotEmitChanged);
QHBoxLayout *folderCBHLayout = new QHBoxLayout;
mFolderQuickSearchCB = new QCheckBox(i18n("Show folder quick search field"), this);
......@@ -504,7 +504,7 @@ AppearancePageLayoutTab::AppearancePageLayoutTab(QWidget *parent)
mFavoriteFoldersViewGroupBox->setTitle(i18n("Show Favorite Folders View"));
mFavoriteFoldersViewGroupBox->setLayout(new QVBoxLayout());
mFavoriteFoldersViewGroup = new QButtonGroup(this);
connect(mFavoriteFoldersViewGroup, qOverload<int>(&QButtonGroup::buttonClicked), this, &ConfigModuleTab::slotEmitChanged);
connect(mFavoriteFoldersViewGroup, qOverload<QAbstractButton *>(&QButtonGroup::buttonClicked), this, &ConfigModuleTab::slotEmitChanged);
QRadioButton *favoriteFoldersViewHiddenRadio = new QRadioButton(i18n("Never"), mFavoriteFoldersViewGroupBox);
mFavoriteFoldersViewGroup->addButton(favoriteFoldersViewHiddenRadio, static_cast<int>(MailCommon::MailCommonSettings::EnumFavoriteCollectionViewMode::HiddenMode));
......@@ -525,7 +525,7 @@ AppearancePageLayoutTab::AppearancePageLayoutTab(QWidget *parent)
mFolderToolTipsGroupBox->setTitle(i18n("Folder Tooltips"));
mFolderToolTipsGroupBox->setLayout(new QVBoxLayout());
mFolderToolTipsGroup = new QButtonGroup(this);
connect(mFolderToolTipsGroup, qOverload<int>(&QButtonGroup::buttonClicked), this, &ConfigModuleTab::slotEmitChanged);
connect(mFolderToolTipsGroup, qOverload<QAbstractButton *>(&QButtonGroup::buttonClicked), this, &ConfigModuleTab::slotEmitChanged);
QRadioButton *folderToolTipsAlwaysRadio = new QRadioButton(i18n("Always"), mFolderToolTipsGroupBox);
mFolderToolTipsGroup->addButton(folderToolTipsAlwaysRadio, static_cast< int >(FolderTreeWidget::DisplayAlways));
......@@ -543,7 +543,7 @@ AppearancePageLayoutTab::AppearancePageLayoutTab(QWidget *parent)
Qt::Vertical, KMailSettings::self()->readerWindowModeItem());
vlay->addWidget(mReaderWindowModeGroupBox);
connect(mReaderWindowModeGroup, qOverload<int>(&QButtonGroup::buttonClicked), this, &ConfigModuleTab::slotEmitChanged);
connect(mReaderWindowModeGroup, qOverload<QAbstractButton *>(&QButtonGroup::buttonClicked), this, &ConfigModuleTab::slotEmitChanged);
vlay->addStretch(10); // spacer
}
......@@ -738,7 +738,7 @@ AppearancePageHeadersTab::AppearancePageHeadersTab(QWidget *parent)
} // end for loop populating mDateDisplay
vlay->addWidget(mDateDisplayBox);
connect(mDateDisplay, qOverload<int>(&QButtonGroup::buttonClicked), this, &ConfigModuleTab::slotEmitChanged);
connect(mDateDisplay, qOverload<QAbstractButton *>(&QButtonGroup::buttonClicked), this, &ConfigModuleTab::slotEmitChanged);
vlay->addStretch(10); // spacer
}
......
......@@ -166,7 +166,7 @@ SecurityPageMDNTab::SecurityPageMDNTab(QWidget *parent)
// "ignore", "ask", "deny", "always send" radiobuttons
mMDNGroup = new QButtonGroup(this);
connect(mMDNGroup, qOverload<int>(&QButtonGroup::buttonClicked), this, &SecurityPageMDNTab::slotEmitChanged);
connect(mMDNGroup, qOverload<QAbstractButton *>(&QButtonGroup::buttonClicked), this, &SecurityPageMDNTab::slotEmitChanged);
mMDNGroup->addButton(mUi.radioIgnore, 0);
mMDNGroup->addButton(mUi.radioAsk, 1);
mMDNGroup->addButton(mUi.radioDeny, 2);
......@@ -174,7 +174,7 @@ SecurityPageMDNTab::SecurityPageMDNTab(QWidget *parent)
// "Original Message quote" radiobuttons
mOrigQuoteGroup = new QButtonGroup(this);
connect(mOrigQuoteGroup, qOverload<int>(&QButtonGroup::buttonClicked), this, &SecurityPageMDNTab::slotEmitChanged);
connect(mOrigQuoteGroup, qOverload<QAbstractButton *>(&QButtonGroup::buttonClicked), this, &SecurityPageMDNTab::slotEmitChanged);
mOrigQuoteGroup->addButton(mUi.radioNothing, 0);
mOrigQuoteGroup->addButton(mUi.radioFull, 1);
mOrigQuoteGroup->addButton(mUi.radioHeaders, 2);
......
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