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 ac129fc2 authored by Laurent Montel's avatar Laurent Montel 😁

Port to new connect api

parent a6355ff7
......@@ -49,8 +49,7 @@ AggregationConfigButton::AggregationConfigButton(QWidget *parent, const Aggregat
, d(new AggregationConfigButtonPrivate(this))
{
d->mAggregationComboBox = aggregationComboBox;
connect(this, SIGNAL(pressed()),
this, SLOT(slotConfigureAggregations()));
connect(this, &AggregationConfigButton::pressed, this, [this]() { d->slotConfigureAggregations(); });
// Keep aggregation combo up-to-date with any changes made in the configure dialog.
if (d->mAggregationComboBox != nullptr) {
......
......@@ -1697,9 +1697,10 @@ void ViewerPrivate::createActions()
//
// copy selected text to clipboard
mCopyAction = ac->addAction(KStandardAction::Copy, QStringLiteral("kmail_copy"), this,
SLOT(slotCopySelectedText()));
mCopyAction = ac->addAction(KStandardAction::Copy, QStringLiteral("kmail_copy"));
mCopyAction->setText(i18n("Copy Text"));
connect(mCopyAction, &QAction::triggered, this, &ViewerPrivate::slotCopySelectedText);
connect(mViewer, &MailWebEngineView::selectionChanged,
this, &ViewerPrivate::viewerSelectionChanged);
viewerSelectionChanged();
......
......@@ -42,7 +42,7 @@ AttachmentDialog::AttachmentDialog(QWidget *parent, const QString &filenameText,
dialog = new QDialog(parent);
dialog->setWindowTitle(i18n("Open Attachment?"));
dialog->setObjectName(QStringLiteral("attachmentSaveOpen"));
mButtonBox = new QDialogButtonBox(QDialogButtonBox::Cancel);
mButtonBox = new QDialogButtonBox(QDialogButtonBox::Cancel, dialog);
QPushButton *user1Button = new QPushButton;
mButtonBox->addButton(user1Button, QDialogButtonBox::ActionRole);
dialog->connect(mButtonBox, &QDialogButtonBox::accepted, dialog, &QDialog::accept);
......
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