From b8a4e0fac2820ec8fc442c2abeea700ae4947e01 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Wed, 18 Jun 2008 19:34:03 +0000 Subject: Assure that when requesting the context menu for the column-view, that the correct items are used. TODO for 4.2: get rid of those 'if (isColumnViewActive())' special cases and provide a generic model which also works with the way the column view is implemented BUG: 164146 svn path=/trunk/KDE/kdebase/apps/; revision=821903 --- src/dolphincolumnwidget.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/dolphincolumnwidget.h') diff --git a/src/dolphincolumnwidget.h b/src/dolphincolumnwidget.h index ada7d637a..72028da7c 100644 --- a/src/dolphincolumnwidget.h +++ b/src/dolphincolumnwidget.h @@ -104,6 +104,14 @@ public: */ void editItem(const KFileItem& item); + /** + * Returns the item on the position \a pos. The KFileItem instance + * is null if no item is below the position. + */ + KFileItem itemAt(const QPoint& pos) const; + + KFileItemList selectedItems() const; + protected: virtual QStyleOptionViewItem viewOptions() const; virtual void startDrag(Qt::DropActions supportedActions); -- cgit v1.3