diff options
| author | Peter Penz <[email protected]> | 2007-08-06 06:56:36 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2007-08-06 06:56:36 +0000 |
| commit | 0111d9b0a02098065a32b34c9b04fde72addb626 (patch) | |
| tree | 3b1a90884fcb505d1a9250ba28cf5918a3d2cf74 /src/dolphincolumnview.h | |
| parent | 1fbb2359d3370596f2c400f98a4b0af74740848e (diff) | |
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
Diffstat (limited to 'src/dolphincolumnview.h')
| -rw-r--r-- | src/dolphincolumnview.h | 14 |
1 files changed, 14 insertions, 0 deletions
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; |
