diff options
| author | Peter Penz <[email protected]> | 2008-08-12 18:36:49 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2008-08-12 18:36:49 +0000 |
| commit | b94777f9d19b3d515088493a81885082a50be791 (patch) | |
| tree | 13bcf6ba24534ace7dfebbb1c9dc4ec280529a60 /src/dolphincolumnwidget.cpp | |
| parent | e41715db92d8f30f69b6831e3e03657740e25254 (diff) | |
Provide functionality for auto-expanding folders (the whole patch has been provided by Simon St James). The setting is currently not offered in the GUI, as some minor remaining issues must be fixed.
CCMAIL: [email protected]
svn path=/trunk/KDE/kdebase/apps/; revision=845975
Diffstat (limited to 'src/dolphincolumnwidget.cpp')
| -rw-r--r-- | src/dolphincolumnwidget.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/dolphincolumnwidget.cpp b/src/dolphincolumnwidget.cpp index 1d4837b12..fe35f5f42 100644 --- a/src/dolphincolumnwidget.cpp +++ b/src/dolphincolumnwidget.cpp @@ -28,6 +28,7 @@ #include "dolphin_columnmodesettings.h" #include "dolphin_generalsettings.h" #include "draganddrophelper.h" +#include "folderexpander.h" #include "iconmanager.h" #include "selectionmanager.h" #include "tooltipmanager.h" @@ -141,6 +142,11 @@ DolphinColumnWidget::DolphinColumnWidget(QWidget* parent, connect(KGlobalSettings::self(), SIGNAL(kdisplayFontChanged()), this, SLOT(updateFont())); + + FolderExpander* folderExpander = new FolderExpander(this, m_proxyModel); + folderExpander->setEnabled(DolphinSettings::instance().generalSettings()->autoExpandFolders()); + connect (folderExpander, SIGNAL(enterDir(const QModelIndex&)), + m_view->m_controller, SLOT(triggerItem(const QModelIndex&))); } DolphinColumnWidget::~DolphinColumnWidget() |
