]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/iconmanager.h
There are some extractable strings in subdirs too.
[dolphin.git] / src / iconmanager.h
index 1621441d8111050f5f5210c2aa1be45ebbdf6843..f72811c2722fd257502f875cfec5d37bee255624 100644 (file)
@@ -80,10 +80,10 @@ private slots:
 
 private:
     /**
-     * Replaces the icon of the item \a item by the preview pixmap
+     * Replaces the icon of the item with the \a url by the preview pixmap
      * \a pixmap.
      */
-    void replaceIcon(const KFileItem& item, const QPixmap& pixmap);
+    void replaceIcon(const KUrl& url, const QPixmap& pixmap);
 
     /**
      * Returns true, if the item \a item has been cut into
@@ -112,24 +112,14 @@ private:
 
 private:
     /**
-     * Remembers the original pixmap for an item before
-     * the cut effect is applied.
+     * Remembers the pixmap for an item specified by an URL.
      */
-    struct CutItem
+    struct ItemInfo
     {
         KUrl url;
         QPixmap pixmap;
     };
 
-    /**
-     * Remembers the received preview pixmap for an item.
-     */
-    struct Preview
-    {
-        KFileItem item;
-        QPixmap pixmap;
-    };
-
     bool m_showPreview;
 
     QAbstractItemView* m_view;
@@ -138,8 +128,8 @@ private:
     DolphinModel* m_dolphinModel;
     DolphinSortFilterProxyModel* m_proxyModel;
 
-    QList<CutItem> m_cutItemsCache;
-    QList<Preview> m_previews;
+    QList<ItemInfo> m_cutItemsCache;
+    QList<ItemInfo> m_previews;
 };
 
 inline bool IconManager::showPreview() const