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

Port to new connect api

parent a37dbed9
......@@ -548,7 +548,7 @@ void KNotesApp::slotPreferences()
{
// create a new preferences dialog...
KNoteConfigDialog *dialog = new KNoteConfigDialog(i18n("Settings"), this);
connect(dialog, SIGNAL(configCommitted()), this, SLOT(slotConfigUpdated()));
connect(dialog, QOverload<>::of(&KCMultiDialog::configCommitted), this, &KNotesApp::slotConfigUpdated);
dialog->show();
}
......
......@@ -241,8 +241,8 @@ KNotesPart::KNotesPart(QObject *parent)
actionCollection()->addAction(QStringLiteral("focus_to_quickseach"), mQuickSearchAction);
connect(mQuickSearchAction, &QAction::triggered, mNotesWidget, &KNotesWidget::slotFocusQuickSearch);
connect(mNotesWidget->notesView(), SIGNAL(itemDoubleClicked(QListWidgetItem*)),
this, SLOT(editNote(QListWidgetItem*)));
connect(mNotesWidget->notesView(), &QListWidget::itemDoubleClicked,
this, QOverload<QListWidgetItem *>::of(&KNotesPart::editNote));
connect(mNotesWidget->notesView(), &QListWidget::itemSelectionChanged,
this, &KNotesPart::slotOnCurrentChanged);
......@@ -635,7 +635,7 @@ void KNotesPart::slotPreferences()
{
// create a new preferences dialog...
KNoteConfigDialog *dialog = new KNoteConfigDialog(i18n("Settings"), widget());
connect(dialog, SIGNAL(configCommitted()), this, SLOT(slotConfigUpdated()));
connect(dialog, QOverload<>::of(&KCMultiDialog::configCommitted), this, &KNotesPart::slotConfigUpdated);
dialog->show();
}
......
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