diff options
| author | David Faure <[email protected]> | 2007-03-26 18:34:52 +0000 |
|---|---|---|
| committer | David Faure <[email protected]> | 2007-03-26 18:34:52 +0000 |
| commit | ad6c01d200e2504de1a383355bd82906fe5c06ed (patch) | |
| tree | 8adbbc4668426ef54f7fd0fc7d06b441bdd06a80 /src/urlnavigator.h | |
| parent | 1a321e5fbcdaf7d92d023bb1f8f2c6352b3c133e (diff) | |
Using a QLinkedList mostly for "accessing element at index i" is not the best solution performance-wise... use a QList instead.
svn path=/trunk/KDE/kdebase/apps/; revision=646813
Diffstat (limited to 'src/urlnavigator.h')
| -rw-r--r-- | src/urlnavigator.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/urlnavigator.h b/src/urlnavigator.h index 01be439f7..5e0d7f836 100644 --- a/src/urlnavigator.h +++ b/src/urlnavigator.h @@ -24,6 +24,7 @@ #include <kurl.h> #include <QWidget> +#include <QList> #include <QLinkedList> class QHBoxLayout; @@ -58,7 +59,7 @@ class ProtocolCombo; * back and forward within this history. */ -typedef QLinkedList<KUrl> UrlStack; +//typedef QList<KUrl> UrlStack; class UrlNavigator : public QWidget { @@ -111,7 +112,7 @@ public: * @param index Output parameter which indicates the current * index of the location. */ - const QLinkedList<HistoryElem>& history(int& index) const; + const QList<HistoryElem>& history(int& index) const; /** * Goes back one step in the URL history. The signals @@ -304,7 +305,7 @@ private: QHBoxLayout* m_layout; - QLinkedList<HistoryElem> m_history; + QList<HistoryElem> m_history; QToolButton* m_toggleButton; BookmarkSelector* m_bookmarkSelector; KUrlComboBox* m_pathBox; |
