Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 9df71876 authored by Laurent Montel's avatar Laurent Montel 😁

Port to new connect api + add parent to QDialogButtonBox

parent b07b5af6
......@@ -58,7 +58,7 @@ ArchiveMailDialog::ArchiveMailDialog(QWidget *parent)
mWidget->setObjectName(QStringLiteral("archivemailwidget"));
mainLayout->addWidget(mWidget);
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel | QDialogButtonBox::Help);
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel | QDialogButtonBox::Help, this);
QPushButton *okButton = buttonBox->button(QDialogButtonBox::Ok);
okButton->setDefault(true);
okButton->setShortcut(Qt::CTRL | Qt::Key_Return);
......
......@@ -61,7 +61,7 @@ FilterLogDialog::FilterLogDialog(QWidget *parent)
{
setWindowTitle(i18n("Filter Log Viewer"));
QVBoxLayout *mainLayout = new QVBoxLayout(this);
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Close);
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Close, this);
mUser1Button = new QPushButton(this);
buttonBox->addButton(mUser1Button, QDialogButtonBox::ActionRole);
mUser2Button = new QPushButton(this);
......
......@@ -469,8 +469,7 @@ KMComposerWin::KMComposerWin(const KMime::Message::Ptr &aMsg, bool lastSignState
applyMainWindowSettings(KMKernel::self()->config()->group("Composer"));
connect(mEdtSubject, &PimCommon::LineEditWithAutoCorrection::textChanged, this, &KMComposerWin::slotUpdateWindowTitle);
connect(identity, SIGNAL(identityChanged(uint)),
SLOT(slotIdentityChanged(uint)));
connect(identity, &KIdentityManagement::IdentityCombo::identityChanged, [this](uint val) {slotIdentityChanged(val);});
connect(kmkernel->identityManager(), SIGNAL(changed(uint)),
SLOT(slotIdentityChanged(uint)));
......
......@@ -81,8 +81,8 @@ KMMainWin::KMMainWin(QWidget *)
connect(KPIM::BroadcastStatus::instance(), &KPIM::BroadcastStatus::statusMsg,
this, &KMMainWin::displayStatusMessage);
connect(mKMMainWidget, SIGNAL(captionChangeRequest(QString)),
SLOT(setCaption(QString)));
connect(mKMMainWidget, &KMMainWidget::captionChangeRequest,
this, QOverload<const QString &>::of(&KMainWindow::setCaption));
mKMMainWidget->updateQuickSearchLineText();
mHideMenuBarAction->setChecked(KMailSettings::self()->showMenuBar());
......
......@@ -100,7 +100,7 @@ KMReaderWin::KMReaderWin(QWidget *aParent, QWidget *mainWindow, KActionCollectio
connect(mViewer, &MessageViewer::Viewer::showMessage, this, &KMReaderWin::slotShowMessage);
connect(mViewer, &MessageViewer::Viewer::showStatusBarMessage, this, &KMReaderWin::showStatusBarMessage);
connect(mViewer, &MessageViewer::Viewer::printingFinished, this, &KMReaderWin::slotPrintingFinished);
connect(mViewer, SIGNAL(deleteMessage(Akonadi::Item)), this, SLOT(slotDeleteMessage(Akonadi::Item)));
connect(mViewer, QOverload<const Akonadi::Item &>::of(&Viewer::deleteMessage), this, &KMReaderWin::slotDeleteMessage);
mViewer->addMessageLoadedHandler(new MessageViewer::MarkMessageReadHandler(this));
mViewer->addMessageLoadedHandler(new MailCommon::SendMdnHandler(kmkernel, this));
......
......@@ -108,8 +108,8 @@ KCMKontactSummary::KCMKontactSummary(QWidget *parent)
layout->setStretchFactor(mPluginView, 1);
load();
connect(mPluginView, SIGNAL(itemChanged(QTreeWidgetItem*,int)),
this, SLOT(changed()));
connect(mPluginView, &QTreeWidget::itemChanged,
this, QOverload<>::of(&KCMKontactSummary::changed));
KAboutData *about = new KAboutData(QStringLiteral("kontactsummary"),
i18n("kontactsummary"),
......
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