X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/248ce7c57a86f964c82c8e0b48e9c07d52c3934e..29c5ab3b74d26657c60b40770676be082caa953d:/src/dolphincolumnview.cpp diff --git a/src/dolphincolumnview.cpp b/src/dolphincolumnview.cpp index 3b3e86a75..f34be92e9 100644 --- a/src/dolphincolumnview.cpp +++ b/src/dolphincolumnview.cpp @@ -65,6 +65,8 @@ DolphinColumnView::DolphinColumnView(QWidget* parent, DolphinController* control this, SLOT(slotSortingChanged(DolphinView::Sorting))); connect(view, SIGNAL(sortOrderChanged(Qt::SortOrder)), this, SLOT(slotSortOrderChanged(Qt::SortOrder))); + connect(view, SIGNAL(sortFoldersFirstChanged(bool)), + this, SLOT(slotSortFoldersFirstChanged(bool))); connect(view, SIGNAL(showHiddenFilesChanged()), this, SLOT(slotShowHiddenFilesChanged())); connect(view, SIGNAL(showPreviewChanged()), @@ -369,9 +371,9 @@ void DolphinColumnView::wheelEvent(QWheelEvent* event) // let Ctrl+wheel events propagate to the DolphinView for icon zooming if ((event->modifiers() & Qt::ControlModifier) == Qt::ControlModifier) { event->ignore(); - return; + } else { + QAbstractItemView::wheelEvent(event); } - QAbstractItemView::wheelEvent(event); } void DolphinColumnView::setZoomLevel(int level) @@ -448,6 +450,13 @@ void DolphinColumnView::slotSortOrderChanged(Qt::SortOrder order) } } +void DolphinColumnView::slotSortFoldersFirstChanged(bool foldersFirst) +{ + foreach (DolphinColumnWidget* column, m_columns) { + column->setSortFoldersFirst(foldersFirst); + } +} + void DolphinColumnView::slotShowHiddenFilesChanged() { const bool show = m_controller->dolphinView()->showHiddenFiles(); @@ -601,9 +610,9 @@ void DolphinColumnView::deleteColumn(DolphinColumnWidget* column) column->m_previewGenerator->deleteLater(); column->m_previewGenerator = 0; column->hide(); - // Prevent automatic destruction of column when this DolphinColumnView + // Prevent automatic destruction of column when this DolphinColumnView // is destroyed. - column->setParent(0); + column->setParent(0); column->disconnect(); emit requestColumnDeletion(column); }