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

Port to new connect api

parent 5e5df88f
......@@ -202,8 +202,8 @@ KNotesApp::KNotesApp()
connect(mNoteRecorder->changeRecorder(), &Akonadi::Monitor::itemRemoved,
this, &KNotesApp::slotItemRemoved);
connect(mNoteRecorder->changeRecorder(), SIGNAL(collectionChanged(Akonadi::Collection,QSet<QByteArray>)),
SLOT(slotCollectionChanged(Akonadi::Collection,QSet<QByteArray>)));
connect(mNoteRecorder->changeRecorder(), QOverload<const Akonadi::Collection &, const QSet<QByteArray> &>::of(&Akonadi::ChangeRecorder::collectionChanged),
this, &KNotesApp::slotCollectionChanged);
connect(qApp, &QGuiApplication::commitDataRequest,
this, &KNotesApp::slotCommitData, Qt::DirectConnection);
......@@ -297,8 +297,8 @@ void KNotesApp::createNote(const Akonadi::Item &item)
mNotes.insert(item.id(), note);
connect(note, &KNote::sigShowNextNote,
this, &KNotesApp::slotWalkThroughNotes);
connect(note, SIGNAL(sigRequestNewNote()),
SLOT(newNote()));
connect(note, &KNote::sigRequestNewNote,
this, [this] { newNote(); });
connect(note, &KNote::sigNameChanged,
this, &KNotesApp::updateNoteActions);
connect(note, &KNote::sigColorChanged,
......
......@@ -220,8 +220,8 @@ KNotesPart::KNotesPart(QObject *parent)
connect(mNoteRecorder->changeRecorder(), &Akonadi::Monitor::itemRemoved,
this, &KNotesPart::slotItemRemoved);
connect(mNoteRecorder->changeRecorder(), SIGNAL(collectionChanged(Akonadi::Collection,QSet<QByteArray>)),
SLOT(slotCollectionChanged(Akonadi::Collection,QSet<QByteArray>)));
connect(mNoteRecorder->changeRecorder(), QOverload<const Akonadi::Collection &, const QSet<QByteArray> &>::of(&Akonadi::ChangeRecorder::collectionChanged),
this, &KNotesPart::slotCollectionChanged);
mSelectionModel = new QItemSelectionModel(mNoteTreeModel);
mModelProxy = new KCheckableProxyModel(this);
......
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