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

Port to new connect api

parent 430b5dc2
......@@ -472,7 +472,7 @@ KMComposerWin::KMComposerWin(const KMime::Message::Ptr &aMsg, bool lastSignState
connect(identity, &KIdentityManagement::IdentityCombo::identityChanged, [this](uint val) {
slotIdentityChanged(val);
});
connect(kmkernel->identityManager(), SIGNAL(changed(uint)),
connect(kmkernel->identityManager(), SIGNAL(changed(uint)), this,
SLOT(slotIdentityChanged(uint)));
connect(mEdtFrom, &MessageComposer::ComposerLineEdit::completionModeChanged, this, &KMComposerWin::slotCompletionModeChanged);
......
......@@ -115,8 +115,8 @@ XFaceConfigurator::XFaceConfigurator(QWidget *parent)
connect(mEnableCheck, &QCheckBox::toggled, widgetStack, &QStackedWidget::setEnabled);
connect(mEnableCheck, &QCheckBox::toggled, label, &QLabel::setEnabled);
// The focus might be still in the widget that is disabled
connect(mEnableCheck, SIGNAL(clicked()),
mEnableCheck, SLOT(setFocus()));
connect(mEnableCheck, &QAbstractButton::clicked,
mEnableCheck, QOverload<>::of(&QWidget::setFocus));
int pageno = 0;
// page 0: create X-Face from image file or address book entry
......
......@@ -93,7 +93,7 @@ KMReaderWin::KMReaderWin(QWidget *aParent, QWidget *mainWindow, KActionCollectio
QVBoxLayout *vlay = new QVBoxLayout(this);
vlay->setContentsMargins(0, 4, 0, 0);
mViewer = new Viewer(this, mainWindow, mActionCollection);
connect(mViewer, SIGNAL(urlClicked(Akonadi::Item,QUrl)), this, SLOT(slotUrlClicked(Akonadi::Item,QUrl)));
connect(mViewer, QOverload<const Akonadi::Item &, const QUrl&>::of(&Viewer::urlClicked), this, &KMReaderWin::slotUrlClicked);
connect(mViewer, &Viewer::requestConfigSync, kmkernel, &KMKernel::slotRequestConfigSync, Qt::QueuedConnection); // happens anyway on shutdown, so we can skip it there with using a queued connection
connect(mViewer, &Viewer::makeResourceOnline, kmkernel, &KMKernel::makeResourceOnline);
connect(mViewer, &MessageViewer::Viewer::showReader, this, &KMReaderWin::slotShowReader);
......
......@@ -208,13 +208,15 @@ SearchWindow::SearchWindow(KMMainWidget *widget, const Akonadi::Collection &coll
mForwardActionMenu->addAction(mForwardInlineAction);
}
mSaveAsAction = actionCollection()->addAction(KStandardAction::SaveAs, QStringLiteral("search_file_save_as"), this, SLOT(slotSaveMsg()));
mSaveAsAction = actionCollection()->addAction(KStandardAction::SaveAs, QStringLiteral("search_file_save_as"));
connect(mSaveAsAction, &QAction::triggered, this, &SearchWindow::slotSaveMsg);
mSaveAtchAction = new QAction(QIcon::fromTheme(QStringLiteral("mail-attachment")), i18n("Save Attachments..."), this);
actionCollection()->addAction(QStringLiteral("search_save_attachments"), mSaveAtchAction);
connect(mSaveAtchAction, &QAction::triggered, this, &SearchWindow::slotSaveAttachments);
mPrintAction = actionCollection()->addAction(KStandardAction::Print, QStringLiteral("search_print"), this, SLOT(slotPrintMsg()));
mPrintAction = actionCollection()->addAction(KStandardAction::Print, QStringLiteral("search_print"));
connect(mPrintAction, &QAction::triggered, this, &SearchWindow::slotPrintMsg);
mClearAction = new QAction(i18n("Clear Selection"), this);
actionCollection()->addAction(QStringLiteral("search_clear_selection"), mClearAction);
......
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