diff options
| author | Weng Xuetian <[email protected]> | 2012-08-27 13:55:17 -0400 |
|---|---|---|
| committer | Weng Xuetian <[email protected]> | 2012-08-27 14:01:10 -0400 |
| commit | 09ba6bcb62297c45c0a5ea664aca1ecb52ba0149 (patch) | |
| tree | 5eaba1ac542b727ac72c162461cfa30e2b7c8414 /src/views/dolphinview.h | |
| parent | d898f40f29f6328fd80165022790609972dcce7c (diff) | |
Make --select can automatically scroll to the selected file.
REVIEW: 106209
Diffstat (limited to 'src/views/dolphinview.h')
| -rw-r--r-- | src/views/dolphinview.h | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/views/dolphinview.h b/src/views/dolphinview.h index 1ad4d6c82..10f63c57a 100644 --- a/src/views/dolphinview.h +++ b/src/views/dolphinview.h @@ -181,8 +181,8 @@ public: void markUrlsAsSelected(const QList<KUrl>& urls); /** - * Marks the item indicated by \p url as the current item after the - * directory DolphinView::url() has been loaded. + * Marks the item indicated by \p url to be scrolled to and as the + * current item after directory DolphinView::url() has been loaded. */ void markUrlAsCurrent(const KUrl& url); @@ -640,18 +640,10 @@ private slots: * Observes the item with the URL \a url. As soon as the directory * model indicates that the item is available, the item will * get selected and it is assured that the item stays visible. - * - * @see selectAndScrollToCreatedItem() */ void observeCreatedItem(const KUrl& url); /** - * Selects and scrolls to the item that got observed - * by observeCreatedItem(). - */ - void selectAndScrollToCreatedItem(); - - /** * Called when a redirection happens. * Testcase: fish://localhost */ @@ -754,8 +746,8 @@ private: QTimer* m_selectionChangedTimer; KUrl m_currentItemUrl; // Used for making the view to remember the current URL after F5 + bool m_scrollToCurrentItem; // Used for marking we need to scroll to current item or not QPoint m_restoredContentsPosition; - KUrl m_createdItemUrl; // URL for a new item that got created by the "Create New..." menu QList<KUrl> m_selectedUrls; // Used for making the view to remember selections after F5 |
