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.cpp | |
| 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.cpp')
| -rw-r--r-- | src/dolphincontroller.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/dolphincontroller.cpp b/src/dolphincontroller.cpp index 7723fd8ef..4666e617b 100644 --- a/src/dolphincontroller.cpp +++ b/src/dolphincontroller.cpp @@ -23,6 +23,7 @@ DolphinController::DolphinController(QObject* parent) : QObject(parent), + m_showHiddenFiles(false), m_showPreview(false), m_zoomInPossible(false), m_zoomOutPossible(false), @@ -73,6 +74,14 @@ void DolphinController::indicateSortOrderChange(Qt::SortOrder order) emit sortOrderChanged(order); } +void DolphinController::setShowHiddenFiles(bool show) +{ + if (m_showHiddenFiles != show) { + m_showHiddenFiles = show; + emit showHiddenFilesChanged(show); + } +} + void DolphinController::setShowPreview(bool show) { if (m_showPreview != show) { @@ -131,9 +140,9 @@ void DolphinController::triggerItem(const QModelIndex& index) emit itemTriggered(index); } -void DolphinController::emitItemEntered(const QModelIndex& index) +void DolphinController::emitItemEntered(const KFileItem& item) { - emit itemEntered(index); + emit itemEntered(item); } void DolphinController::emitViewportEntered() |
