Git commit e0c2dd21172e71b1e0e806d6a859db623059b231 by Montel Laurent. Committed on 31/10/2013 at 21:21. Pushed by mlaurent into branch 'master'. Return note list M +12 -0 kontact/plugins/knotes/knotes_part.cpp M +1 -0 kontact/plugins/knotes/knotes_part.h M +3 -0 kontact/plugins/knotes/org.kde.kontact.KNotes.xml http://commits.kde.org/kdepim/e0c2dd21172e71b1e0e806d6a859db623059b231 diff --git a/kontact/plugins/knotes/knotes_part.cpp b/kontact/plugins/knote= s/knotes_part.cpp index e727152..ac141c6 100644 --- a/kontact/plugins/knotes/knotes_part.cpp +++ b/kontact/plugins/knotes/knotes_part.cpp @@ -216,6 +216,18 @@ KNotesPart::~KNotesPart() mNoteTip =3D 0; } = +QStringList KNotesPart::notesList() const +{ + QStringList notes; + + QHashIterator i(mNoteList); + while ( i.hasNext() ) { + i.next(); + notes.append(i.value()->journal()->uid()); + } + return notes; +} + void KNotesPart::requestToolTip( const QModelIndex &index ) { const QRect m_itemRect =3D mNotesWidget->notesView()->visualRect( inde= x ); diff --git a/kontact/plugins/knotes/knotes_part.h b/kontact/plugins/knotes/= knotes_part.h index b92c934..e3d3ddb 100644 --- a/kontact/plugins/knotes/knotes_part.h +++ b/kontact/plugins/knotes/knotes_part.h @@ -60,6 +60,7 @@ public slots: QString newNote( const QString &name =3D QString(), const QString &text =3D QString() ); QString newNoteFromClipboard( const QString &name =3D QString() ); + QStringList notesList() const; = public: void killNote( const QString &id ); diff --git a/kontact/plugins/knotes/org.kde.kontact.KNotes.xml b/kontact/pl= ugins/knotes/org.kde.kontact.KNotes.xml index 3380c4d..53326ae 100644 --- a/kontact/plugins/knotes/org.kde.kontact.KNotes.xml +++ b/kontact/plugins/knotes/org.kde.kontact.KNotes.xml @@ -38,5 +38,8 @@ + + +