[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/kfile
From:       Peter Penz <peter.penz () gmx ! at>
Date:       2007-04-04 4:57:08
Message-ID: 1175662820.484219.4362.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 650275 by ppenz:

allow to get the history index from the URL navigator

 M  +5 -0      kurlnavigator.cpp  
 M  +6 -0      kurlnavigator.h  


--- trunk/KDE/kdelibs/kfile/kurlnavigator.cpp #650274:650275
@@ -634,6 +634,11 @@
     return d->m_history.count();
 }
 
+int KUrlNavigator::historyIndex() const
+{
+    return d->m_historyIndex;
+}
+
 void KUrlNavigator::goBack()
 {
     d->updateHistoryElem();
--- trunk/KDE/kdelibs/kfile/kurlnavigator.h #650274:650275
@@ -64,6 +64,12 @@
     /** Returns the amount of items in the history */
     int historySize() const;
 
+    /**
+     * Returns the history index of the current active URL, where
+     * 0 <= history index < KUrlNavigator::historySize().
+     */
+    int historyIndex() const;
+
     /** Returns the saved position from the history */
     QPoint savedPosition() const;
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic