File kdelibs-4.3.85-use-timeline.patch of Package kdelibs4
Index: kfile/kfileplacesmodel.cpp
===================================================================
--- kfile/kfileplacesmodel.cpp (revision 1064539)
+++ kfile/kfileplacesmodel.cpp (working copy)
@@ -36,6 +36,7 @@
#include <kicon.h>
#include <kmimetype.h>
#include <kdebug.h>
+#include <kprotocolmanager.h>
#include <kbookmarkmanager.h>
#include <kbookmark.h>
@@ -126,6 +127,10 @@
KFilePlacesItem::createSystemBookmark(d->bookmarkManager,
"Trash", I18N_NOOP2("KFile System Bookmarks", "Trash"),
KUrl("trash:/"), "user-trash");
+ if(KProtocolManager::supportsListing(KUrl("timeline:/")))
+ KFilePlacesItem::createSystemBookmark(d->bookmarkManager,
+ "Timeline", I18N_NOOP2("KFile System Bookmarks", "Browse by date"),
+ KUrl("timeline:/"), "nepomuk");
// Force bookmarks to be saved. If on open/save dialog and the bookmarks are not saved, QFile::exists
// will always return false, which opening/closing all the time the open/save dialog would case the