summaryrefslogtreecommitdiff
path: root/src/history/historymodels.cpp
diff options
context:
space:
mode:
authorYoann Laissus <yoann.laissus@gmail.com>2010-03-23 22:56:26 +0100
committerYoann Laissus <yoann.laissus@gmail.com>2010-03-23 22:56:26 +0100
commite9670c51fef2c8447a04a30778a24646df4ef915 (patch)
tree0a6fcb5bc2696cfb3a4ed313e5bbb57a7a704f1d /src/history/historymodels.cpp
parentDoing "load finished" operations just on ok loading is really NOT (diff)
downloadrekonq-e9670c51fef2c8447a04a30778a24646df4ef915.tar.xz
A lot of fix and improvements for the bookmark and the history panels
Diffstat (limited to 'src/history/historymodels.cpp')
-rw-r--r--src/history/historymodels.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/history/historymodels.cpp b/src/history/historymodels.cpp
index 709d0523..736dbcd7 100644
--- a/src/history/historymodels.cpp
+++ b/src/history/historymodels.cpp
@@ -118,6 +118,8 @@ QVariant HistoryModel::data(const QModelIndex &index, int role) const
return item.dateTime.date();
case UrlRole:
return QUrl(item.url);
+ case Qt::UserRole:
+ return KUrl(item.url);
case UrlStringRole:
return item.url;
case Qt::DisplayRole:
@@ -144,6 +146,12 @@ QVariant HistoryModel::data(const QModelIndex &index, int role) const
{
return Application::icon(item.url);
}
+ case Qt::ToolTipRole:
+ QString tooltip = "";
+ if(!item.title.isEmpty())
+ tooltip = item.title + "\n";
+ tooltip += item.dateTime.toString(Qt::SystemLocaleShortDate) + "\n" + item.url;
+ return tooltip;
}
return QVariant();
}