From 81fcd720a2cc095262e52b8a40dd1472d774a415 Mon Sep 17 00:00:00 2001 From: David Faure Date: Mon, 13 Aug 2007 21:57:20 +0000 Subject: Use KFileItem by value rather than by pointer - in KDirModel::itemForIndex, as noted there as a TODO - in dolphin, everywhere. svn path=/trunk/KDE/kdebase/apps/; revision=699691 --- src/dolphinview.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/dolphinview.h') diff --git a/src/dolphinview.h b/src/dolphinview.h index a18b87d08..cd6bd977a 100644 --- a/src/dolphinview.h +++ b/src/dolphinview.h @@ -224,7 +224,7 @@ public: * selected. * @see DolphinView::selectedUrls() */ - KFileItemList selectedItems() const; + QList selectedItems() const; /** * Returns a list of URLs for all selected items. An empty list @@ -236,7 +236,7 @@ public: /** * Returns the file item for the given model index \a index. */ - KFileItem* fileItem(const QModelIndex index) const; + KFileItem fileItem(const QModelIndex& index) const; /** * Sets the upper left position of the view content @@ -307,7 +307,7 @@ public slots: * will actually get selected. The view will e.g. not select items which * are not in the currently displayed folder. */ - void changeSelection(const KFileItemList& selection); + void changeSelection(const QList& selection); signals: /** @@ -354,14 +354,14 @@ signals: /** * Is emitted whenever the selection has been changed. */ - void selectionChanged(const KFileItemList& selection); + void selectionChanged(const QList& selection); /** * Is emitted if a context menu is requested for the item \a item, * which is part of \a url. If the item is 0, the context menu * for the URL should be shown. */ - void requestContextMenu(KFileItem* item, const KUrl& url); + void requestContextMenu(const KFileItem& item, const KUrl& url); /** * Is emitted if the URLs \a are dropped to the destination URL @@ -406,7 +406,7 @@ private slots: * The current preview settings (maximum size, 'Show Preview' menu) * are respected. */ - void generatePreviews(const KFileItemList& items); + void generatePreviews(const QList& items); /** * Replaces the icon of the item \a item by the preview pixmap -- cgit v1.3