┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinview.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2008-05-28 20:40:16 +0000
committerPeter Penz <[email protected]>2008-05-28 20:40:16 +0000
commite54e6a9cdbc0e37e7c81abcea4e69838cddabaa3 (patch)
treecc6f04e75706796a9a53424663e02f77d62b24a8 /src/dolphinview.h
parentb445156dd40a16877058f8228900679cb27aa4cc (diff)
Move the code for restoring the current item from DolphinViewContainer to DolphinView, as the DolphinView must be able to do this without advice from the container.
Beside that this simplifies the code it also fixes a regression of having empty tabs. svn path=/trunk/KDE/kdebase/apps/; revision=813828
Diffstat (limited to 'src/dolphinview.h')
-rw-r--r--src/dolphinview.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/dolphinview.h b/src/dolphinview.h
index 708535567..121a7f6da 100644
--- a/src/dolphinview.h
+++ b/src/dolphinview.h
@@ -233,12 +233,6 @@ public:
/** Returns the upper left position of the view content. */
QPoint contentsPosition() const;
- /**
- * Sets the current item (= item that has the keyboard focus) to
- * the item with the URL \a url.
- */
- void setCurrentItem(const KUrl& url);
-
/** Increases the size of the current set view mode. */
void zoomIn();
@@ -601,6 +595,12 @@ private slots:
*/
void slotDeleteFileFinished(KJob* job);
+ /**
+ * Restores the current item (= item that has the keyboard focus)
+ * to m_currentItemUrl.
+ */
+ void restoreCurrentItem();
+
private:
void loadDirectory(const KUrl& url, bool reload = false);
@@ -683,6 +683,7 @@ private:
ToolTipManager* m_toolTipManager;
KUrl m_rootUrl;
+ KUrl m_currentItemUrl;
};
/// Allow using DolphinView::Mode in QVariant