PlacesSidebar.setShowRecent

void setShowRecent(bool showRecent)

Sets whether the sidebar should show an item for recent files. The default value for this option is determined by the desktop environment, but this function can be used to override it on a per-application basis.

Parameters

showRecentwhether to show an item for recent files