From 0111d9b0a02098065a32b34c9b04fde72addb626 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Mon, 6 Aug 2007 06:56:36 +0000 Subject: Fixed 'Select All' and 'Invert Selection' for the column view (only the items of the currently active column will be selected, not the whole tree). The current implementation is quite slow, but this will be fixed later. svn path=/trunk/KDE/kdebase/apps/; revision=696893 --- src/dolphincolumnview.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/dolphincolumnview.h') diff --git a/src/dolphincolumnview.h b/src/dolphincolumnview.h index 03f210229..b2471fdb7 100644 --- a/src/dolphincolumnview.h +++ b/src/dolphincolumnview.h @@ -41,6 +41,15 @@ public: explicit DolphinColumnView(QWidget* parent, DolphinController* controller); virtual ~DolphinColumnView(); + /** + * Inverts the selection for the current active column. + */ + void invertSelection(); + +public slots: + /** @see QAbstractItemView::selectAll() */ + virtual void selectAll(); + protected: virtual QAbstractItemView* createColumn(const QModelIndex& index); virtual void mousePressEvent(QMouseEvent* event); @@ -86,6 +95,11 @@ private: */ void requestSelectionModel(QAbstractItemView* view); + /** + * Helper method for selecting all items of an active column by \a flags. + */ + void selectActiveColumn(QItemSelectionModel::SelectionFlags flags); + private: DolphinController* m_controller; -- cgit v1.3.1