Commit 579bff5c authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Remove some qOverload as we remove deprecated qt5.15 signal

parent e411d62c
Pipeline #82747 canceled with stage
......@@ -78,7 +78,7 @@ void CollectionMailingListPage::init(const Akonadi::Collection &col)
mMLHandlerCombo = new QComboBox(this);
mMLHandlerCombo->addItem(i18n("KMail"), MailingList::KMail);
mMLHandlerCombo->addItem(i18n("Browser"), MailingList::Browser);
connect(mMLHandlerCombo, qOverload<int>(&QComboBox::activated), this, &CollectionMailingListPage::slotMLHandling);
connect(mMLHandlerCombo, &QComboBox::activated, this, &CollectionMailingListPage::slotMLHandling);
topLayout->addRow(i18n("Preferred handler:"), mMLHandlerCombo);
......@@ -112,7 +112,7 @@ void CollectionMailingListPage::init(const Akonadi::Collection &col)
// depend on it
const QStringList el{i18n("Post to List"), i18n("Subscribe to List"), i18n("Unsubscribe From List"), i18n("List Archives"), i18n("List Help")};
mAddressCombo->addItems(el);
connect(mAddressCombo, qOverload<int>(&QComboBox::activated), this, &CollectionMailingListPage::slotAddressChanged);
connect(mAddressCombo, &QComboBox::activated, this, &CollectionMailingListPage::slotAddressChanged);
mMLId->setEnabled(false);
mMLHandlerCombo->setEnabled(false);
......
......@@ -109,14 +109,14 @@ AccountsPageSendingTab::AccountsPageSendingTab(QWidget *parent)
mSendOnCheckCombo->addItems(QStringList() << i18n("Never Automatically") << i18n("On Manual Mail Checks") << i18n("On All Mail Checks"));
mSendOnCheckCombo->setWhatsThis(i18n(KMailSettings::self()->sendOnCheckItem()->whatsThis().toUtf8().constData()));
formLayout->addRow(i18n("Send &messages in outbox folder:"), mSendOnCheckCombo);
connect(mSendOnCheckCombo, qOverload<int>(&QComboBox::activated), this, &AccountsPageSendingTab::slotEmitChanged);
connect(mSendOnCheckCombo, &QComboBox::activated, this, &AccountsPageSendingTab::slotEmitChanged);
// "default send method" combo:
mSendMethodCombo = new QComboBox(this);
mSendMethodCombo->setEditable(false);
mSendMethodCombo->addItems(QStringList() << i18n("Send Now") << i18n("Send Later"));
formLayout->addRow(i18n("Defa&ult send method:"), mSendMethodCombo);
connect(mSendMethodCombo, qOverload<int>(&QComboBox::activated), this, &AccountsPageSendingTab::slotEmitChanged);
connect(mSendMethodCombo, &QComboBox::activated, this, &AccountsPageSendingTab::slotEmitChanged);
auto hLayout = new QHBoxLayout;
mUndoSend = new QCheckBox(i18n("Enable Undo Send"), this);
......@@ -130,7 +130,7 @@ AccountsPageSendingTab::AccountsPageSendingTab(QWidget *parent)
mUndoSendComboBox->setEnabled(false);
hLayout->addWidget(mUndoSendComboBox);
formLayout->addRow(QString(), hLayout);
connect(mUndoSendComboBox, qOverload<int>(&QComboBox::activated), this, &AccountsPageSendingTab::slotEmitChanged);
connect(mUndoSendComboBox, &QComboBox::activated, this, &AccountsPageSendingTab::slotEmitChanged);
}
void AccountsPageSendingTab::doLoadFromGlobalSettings()
......
......@@ -181,7 +181,7 @@ AppearancePageFontsTab::AppearancePageFontsTab(QWidget *parent)
connect(mCustomFontCheck, &QAbstractButton::toggled, mFontLocationCombo, &QWidget::setEnabled);
connect(mCustomFontCheck, &QAbstractButton::toggled, mFontChooser, &QWidget::setEnabled);
// load the right font settings into mFontChooser:
connect(mFontLocationCombo, qOverload<int>(&QComboBox::activated), this, &AppearancePageFontsTab::slotFontSelectorChanged);
connect(mFontLocationCombo, &QComboBox::activated, this, &AppearancePageFontsTab::slotFontSelectorChanged);
}
void AppearancePageFontsTab::slotFontSelectorChanged(int index)
......
......@@ -284,7 +284,7 @@ ComposerPageGeneralTab::ComposerPageGeneralTab(QWidget *parent)
label = new QLabel(i18n("Default forwarding type:"), this);
label->setBuddy(mForwardTypeCombo);
connect(mForwardTypeCombo, qOverload<int>(&QComboBox::activated), this, &ComposerPageGeneralTab::slotEmitChanged);
connect(mForwardTypeCombo, &QComboBox::activated, this, &ComposerPageGeneralTab::slotEmitChanged);
groupGridLayout->addWidget(label, row, 0);
groupGridLayout->addWidget(mForwardTypeCombo, row, 1);
......
......@@ -63,8 +63,8 @@ MiscPageFolderTab::MiscPageFolderTab(QWidget *parent)
mMMTab.mExcludeImportantFromExpiry->setWhatsThis(i18n(KMailSettings::self()->excludeImportantMailFromExpiryItem()->whatsThis().toUtf8().constData()));
connect(mMMTab.mExcludeImportantFromExpiry, &QCheckBox::stateChanged, this, &MiscPageFolderTab::slotEmitChanged);
connect(mMMTab.mLoopOnGotoUnread, qOverload<int>(&QComboBox::activated), this, &MiscPageFolderTab::slotEmitChanged);
connect(mMMTab.mActionEnterFolder, qOverload<int>(&QComboBox::activated), this, &MiscPageFolderTab::slotEmitChanged);
connect(mMMTab.mLoopOnGotoUnread, &QComboBox::activated, this, &MiscPageFolderTab::slotEmitChanged);
connect(mMMTab.mActionEnterFolder, &QComboBox::activated, this, &MiscPageFolderTab::slotEmitChanged);
connect(mMMTab.mDelayedMarkTime, qOverload<int>(&QSpinBox::valueChanged), this, &MiscPageFolderTab::slotEmitChanged);
connect(mMMTab.mDelayedMarkAsRead, &QAbstractButton::toggled, mMMTab.mDelayedMarkTime, &QWidget::setEnabled);
connect(mMMTab.mDelayedMarkAsRead, &QAbstractButton::toggled, this, &ConfigModuleTab::slotEmitChanged);
......
......@@ -90,7 +90,7 @@ ArchiveFolderDialog::ArchiveFolderDialog(QWidget *parent)
mFormatComboBox->addItem(i18n("BZ2-Compressed Tar Archive (.tar.bz2)"));
mFormatComboBox->addItem(i18n("GZ-Compressed Tar Archive (.tar.gz)"));
mFormatComboBox->setCurrentIndex(2);
connect(mFormatComboBox, qOverload<int>(&QComboBox::activated), this, &ArchiveFolderDialog::slotFixFileExtension);
connect(mFormatComboBox, &QComboBox::activated, this, &ArchiveFolderDialog::slotFixFileExtension);
mainLayout->addWidget(mFormatComboBox, row, 1);
row++;
......
......@@ -45,7 +45,7 @@ KMKnotify::KMKnotify(QWidget *parent)
mainLayout->addWidget(buttonBox);
connect(m_comboNotify, qOverload<int>(&QComboBox::activated), this, &KMKnotify::slotComboChanged);
connect(m_comboNotify, &QComboBox::activated, this, &KMKnotify::slotComboChanged);
connect(okButton, &QPushButton::clicked, this, &KMKnotify::slotOk);
connect(m_notifyWidget, &KNotifyConfigWidget::changed, this, &KMKnotify::slotConfigChanged);
initCombobox();
......
......@@ -79,8 +79,8 @@ XFaceConfigurator::XFaceConfigurator(QWidget *parent)
auto widgetStack = new QStackedWidget(this);
widgetStack->setEnabled(false); // since !mEnableCheck->isChecked()
vlay->addWidget(widgetStack, 1);
connect(sourceCombo, qOverload<int>(&QComboBox::highlighted), widgetStack, &QStackedWidget::setCurrentIndex);
connect(sourceCombo, qOverload<int>(&QComboBox::activated), widgetStack, &QStackedWidget::setCurrentIndex);
connect(sourceCombo, &QComboBox::highlighted, widgetStack, &QStackedWidget::setCurrentIndex);
connect(sourceCombo, &QComboBox::activated, widgetStack, &QStackedWidget::setCurrentIndex);
connect(mEnableCheck, &QCheckBox::toggled, sourceCombo, &QComboBox::setEnabled);
connect(mEnableCheck, &QCheckBox::toggled, widgetStack, &QStackedWidget::setEnabled);
connect(mEnableCheck, &QCheckBox::toggled, label, &QLabel::setEnabled);
......
Supports Markdown
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