diff options
| author | Peter Penz <[email protected]> | 2007-10-05 21:00:44 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2007-10-05 21:00:44 +0000 |
| commit | 29402a79bc09945ccd96201cbb42027b4c581a00 (patch) | |
| tree | ad3664f888c37b7f331bf1bb856aa130d2d5d0d6 /src/dolphincontroller.h | |
| parent | 747731077981775cbaefe928068fea4010b6fdb7 (diff) | |
Refactored DolphinColumnWidget so that it does not need a hierarchical KDirLister. This simplifies the code a lot and also bypasses the current problems with the KDirLister cache when working on hierarchical directories in parallel. There are some minor regressions which will be fixed, but all in all some improvements are visible already:
- the loading of columns is a lot faster
- preview in columns is working
- no side effects in combination with the treeview-panel because of caching
svn path=/trunk/KDE/kdebase/apps/; revision=721678
Diffstat (limited to 'src/dolphincontroller.h')
| -rw-r--r-- | src/dolphincontroller.h | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/src/dolphincontroller.h b/src/dolphincontroller.h index d773a8548..3a2720471 100644 --- a/src/dolphincontroller.h +++ b/src/dolphincontroller.h @@ -74,6 +74,9 @@ public: void indicateSortOrderChange(Qt::SortOrder order); + void setShowHiddenFiles(bool show); + bool showHiddenFiles() const; + void setShowPreview(bool show); bool showPreview() const; @@ -103,7 +106,7 @@ public slots: * Emits the signal itemEntered(). The method should be invoked by * the controller parent whenever the mouse cursor is above an item. */ - void emitItemEntered(const QModelIndex& index); + void emitItemEntered(const KFileItem& item); /** * Emits the signal viewportEntered(). The method should be invoked by @@ -150,6 +153,12 @@ signals: void sortOrderChanged(Qt::SortOrder order); /** + * Is emitted if the state for showing hidden files has been + * changed to \a show. + */ + void showHiddenFilesChanged(bool show); + + /** * Is emitted if the state for showing previews has been * changed to \a show. */ @@ -173,7 +182,7 @@ signals: * Is emitted if the mouse cursor has entered the item * given by \a index. */ - void itemEntered(const QModelIndex& index); + void itemEntered(const KFileItem& item); /** * Is emitted if the mouse cursor has entered @@ -187,6 +196,7 @@ signals: void zoomOut(); private: + bool m_showHiddenFiles; bool m_showPreview; bool m_zoomInPossible; bool m_zoomOutPossible; @@ -199,6 +209,11 @@ inline const KUrl& DolphinController::url() const return m_url; } +inline bool DolphinController::showHiddenFiles() const +{ + return m_showHiddenFiles; +} + inline bool DolphinController::showPreview() const { return m_showPreview; |
