Commit a351e2b1 authored by Aurélien Gâteau's avatar Aurélien Gâteau
Browse files

Show visit date in tooltip.

svn path=/trunk/KDE/kdegraphics/gwenview/; revision=956370
parent 808ab492
......@@ -31,6 +31,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Cambridge, MA 02110-1301, USA
#include <kconfiggroup.h>
#include <kdebug.h>
#include <kfileplacesmodel.h>
#include <kglobal.h>
#include <klocale.h>
#include <kmimetype.h>
#include <kstandarddirs.h>
#include <ktemporaryfile.h>
......@@ -150,6 +152,9 @@ struct HistoryModelPrivate {
item->setData(QVariant(url), KFilePlacesModel::UrlRole);
QString date = KGlobal::locale()->formatDateTime(historyItem->dateTime(), KLocale::FancyLongDate);
item->setData(QVariant(i18n("Last visited: %1", date)), Qt::ToolTipRole);
q->appendRow(item);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment