diff options
author | Emanoil Kotsev <[email protected]> | 2020-02-29 18:39:20 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2020-02-29 18:39:20 +0900 |
commit | 094f8d9a878ff83db4e3bdd5ca2bcb273f96c7ea (patch) | |
tree | 16d3fab3f49d54c78019802c505df10a697157da /kontact/plugins/knotes/knotes_part.cpp | |
parent | 0087f22b7304e93164515e04ade0a24f2538e40e (diff) | |
download | tdepim-094f8d9a878ff83db4e3bdd5ca2bcb273f96c7ea.tar.gz tdepim-094f8d9a878ff83db4e3bdd5ca2bcb273f96c7ea.zip |
Extended the interface of KNotes with getLastModified method. This
relates to bug 2691.
Signed-off-by: Emanoil Kotsev <[email protected]>
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'kontact/plugins/knotes/knotes_part.cpp')
-rw-r--r-- | kontact/plugins/knotes/knotes_part.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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<TQString, TQString> 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 |