┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/urlnavigator.h
diff options
context:
space:
mode:
authorDavid Faure <[email protected]>2007-03-27 20:41:57 +0000
committerDavid Faure <[email protected]>2007-03-27 20:41:57 +0000
commitc5534a5f93c51180849ff269aa9a792938ddcd2f (patch)
tree2bcc1ab58b6dd1136e6e777aad2aaf96ccf3a739 /src/urlnavigator.h
parentc9eec20c3d8d8fa73364681389e5c682fbd3dc20 (diff)
Hide the HistoryElem class from the public API of UrlNavigator
svn path=/trunk/KDE/kdebase/apps/; revision=647276
Diffstat (limited to 'src/urlnavigator.h')
-rw-r--r--src/urlnavigator.h40
1 files changed, 2 insertions, 38 deletions
diff --git a/src/urlnavigator.h b/src/urlnavigator.h
index 4b277d1b8..cec3a0a9d 100644
--- a/src/urlnavigator.h
+++ b/src/urlnavigator.h
@@ -50,37 +50,6 @@ class UrlNavigator : public QWidget
Q_OBJECT
public:
- /**
- * @brief Represents the history element of an URL.
- *
- * A history element contains the URL, the name of the current file
- * (the 'current file' is the file where the cursor is located) and
- * the x- and y-position of the content.
- */
- class HistoryElem {
- public:
- HistoryElem();
- HistoryElem(const KUrl& url);
- ~HistoryElem(); // non virtual
-
- const KUrl& url() const { return m_url; }
-
- void setCurrentFileName(const QString& name) { m_currentFileName = name; }
- const QString& currentFileName() const { return m_currentFileName; }
-
- void setContentsX(int x) { m_contentsX = x; }
- int contentsX() const { return m_contentsX; }
-
- void setContentsY(int y) { m_contentsY = y; }
- int contentsY() const { return m_contentsY; }
-
- private:
- KUrl m_url;
- QString m_currentFileName;
- int m_contentsX;
- int m_contentsY;
- };
-
UrlNavigator(KBookmarkManager* bookmarkManager, const KUrl& url, QWidget* parent);
virtual ~UrlNavigator();
@@ -93,13 +62,8 @@ public:
/** Returns the amount of items in the history */
int historySize() const;
- /**
- * Returns one item out of the history. The index 0 indicates the oldest
- * history element.
- * @param index Output parameter which indicates the current
- * index of the location.
- */
- HistoryElem currentHistoryItem() const;
+ /** Returns the saved position from the history */
+ QPoint savedPosition() const;
/**
* Goes back one step in the URL history. The signals