From 094f8d9a878ff83db4e3bdd5ca2bcb273f96c7ea Mon Sep 17 00:00:00 2001 From: Emanoil Kotsev Date: Sat, 29 Feb 2020 18:39:20 +0900 Subject: Extended the interface of KNotes with getLastModified method. This relates to bug 2691. Signed-off-by: Emanoil Kotsev Signed-off-by: Michele Calgaro --- kontact/plugins/knotes/knotes_part.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'kontact/plugins/knotes/knotes_part.cpp') diff --git a/kontact/plugins/knotes/knotes_part.cpp b/kontact/plugins/knotes/knotes_part.cpp index 02a4028e2..20e8d6c9e 100644 --- a/kontact/plugins/knotes/knotes_part.cpp +++ b/kontact/plugins/knotes/knotes_part.cpp @@ -274,6 +274,14 @@ TQMap KNotesPart::notes() const return notes; } +TQDateTime KNotesPart::getLastModified( const TQString& id ) const +{ + KNotesIconViewItem *note = mNoteList[ id ]; + TQDateTime dt; + if ( note ) + dt = note->journal()->lastModified(); + return dt; +} // private stuff -- cgit v1.2.1