From 70999c96a27777c2b1d0774b410680abd47eb131 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sun, 21 Jan 2007 21:20:37 +0000 Subject: Cleanup of DolphinContextMenu: - don't use any deprecated methods anymore - temporary deactivated the "Open With..." submenu. There's a crash in KDirModel when invoking KFileItem::mimetype(); although the same code worked with an older version of kdelibs, I assume this is a Dolphin issue -> I'll do some further analyses... svn path=/trunk/playground/utils/dolphin/; revision=626023 --- src/dolphinview.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/dolphinview.h') diff --git a/src/dolphinview.h b/src/dolphinview.h index 396892c21..ba7242a8e 100644 --- a/src/dolphinview.h +++ b/src/dolphinview.h @@ -240,12 +240,9 @@ public: KUrl::List selectedUrls() const; /** - * Returns the current item, where the cursor is. 0 is returned, if there is no - * current item (e. g. if the view is empty). Note that the current item must - * not be a selected item. - * @see DolphinView::selectedItems() + * Returns the file item for the given model index \a index. */ - const KFileItem* currentFileItem() const; + KFileItem* fileItem(const QModelIndex index) const; /** * Opens the context menu for the item indicated by \a fileInfo -- cgit v1.3.1