diff options
| author | Peter Penz <[email protected]> | 2007-09-26 08:39:58 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2007-09-26 08:39:58 +0000 |
| commit | 8c9c081ead1b473ee05977708e33a746af7297c2 (patch) | |
| tree | 75c675238fd4d3b43bcfa8b23bda6cc72d7cbe5b /src/dolphincolumnview.h | |
| parent | 13ef27496ea7339dd476d13830327cdcee892f44 (diff) | |
Listen to the directory lister signals to know whether the directory lister is still working. This information is needed as KDirModel::expandToUrl() may never get invoked if the directory lister is still busy...
svn path=/trunk/KDE/kdebase/apps/; revision=717188
Diffstat (limited to 'src/dolphincolumnview.h')
| -rw-r--r-- | src/dolphincolumnview.h | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/src/dolphincolumnview.h b/src/dolphincolumnview.h index 5a20b1f9f..511d4d7e5 100644 --- a/src/dolphincolumnview.h +++ b/src/dolphincolumnview.h @@ -53,7 +53,6 @@ public: /** Inverts the selection of the currently active column. */ void invertSelection(); -public slots: /** * Reloads the content of all columns. In opposite to non-hierarchical views * it is not enough to reload the KDirLister, instead this method must be explicitly @@ -61,6 +60,7 @@ public slots: */ void reload(); +public slots: /** * Shows the column which represents the URL \a url. If the column * is already shown, it gets activated, otherwise it will be created. @@ -118,7 +118,25 @@ private slots: */ void reloadColumns(); - void triggerItem(const QModelIndex& index); + /** + * Synchronizes the current state of the directory lister with + * the currently shown columns. This is required if the directory + * lister has been changed from outside without user interaction. + */ + void synchronize(); + + /** + * Is invoked when the directory lister has started the loading + * of the URL \a url and sets the internal m_dirListerCompleted + * state to false. + */ + void slotDirListerStarted(const KUrl& url); + + /** + * Is invoked when the directory lister has completed the loading + * and sets the internal m_dirListerCompleted state to true. + */ + void slotDirListerCompleted(); private: bool isZoomInPossible() const; @@ -153,7 +171,7 @@ private: private: DolphinController* m_controller; bool m_restoreActiveColumnFocus; - bool m_initializedDirLister; + bool m_dirListerCompleted; int m_index; int m_contentX; QList<ColumnWidget*> m_columns; |
