-rw-r--r-- | libkcal/incidencebase.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/libkcal/incidencebase.cpp b/libkcal/incidencebase.cpp index 022dead..cfef973 100644 --- a/libkcal/incidencebase.cpp +++ b/libkcal/incidencebase.cpp @@ -195,3 +195,3 @@ void IncidenceBase::setLastModifiedSubInvalid() { - + // virtual method } @@ -203,2 +203,9 @@ void IncidenceBase::setLastModified(const QDateTime &lm) mLastModified = getEvenTime(lm); + mLastModifiedKey.sprintf("%04d%02d%02d%02d%02d%02d", + mLastModified.date().year(), + mLastModified.date().month(), + mLastModified.date().day(), + mLastModified.time().hour(), + mLastModified.time().minute(), + mLastModified.time().second() ); setLastModifiedSubInvalid(); @@ -206,2 +213,6 @@ void IncidenceBase::setLastModified(const QDateTime &lm) } +QString IncidenceBase::lastModifiedSortKey() const +{ + return mLastModifiedKey; +} |