]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/urlnavigator.cpp
Ported to KBookmarkManager::closestBookmark - which even solves another TODO about...
[dolphin.git] / src / urlnavigator.cpp
index ca3b1789cbf26ffe3a954d0b4054d2b78df41b90..aa4c94c69712b09b08d7b4c9d53d92ee8fd9e5bf 100644 (file)
@@ -166,10 +166,14 @@ KUrl UrlNavigator::url(int index) const
     return newurl;
 }
 
-const QList<UrlNavigator::HistoryElem>& UrlNavigator::history(int& index) const
+UrlNavigator::HistoryElem UrlNavigator::currentHistoryItem() const
 {
-    index = m_historyIndex;
-    return m_history;
+    return m_history[m_historyIndex];
+}
+
+int UrlNavigator::historySize() const
+{
+    return m_history.count();
 }
 
 void UrlNavigator::goBack()