┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-08-16 15:28:30 +0000
committerPeter Penz <[email protected]>2007-08-16 15:28:30 +0000
commit78f8358cd5d3bdd2ca6755a7fbfcb28bddacbc6c (patch)
treeefb27c9f6c4b3a33e1a0ea022fcdc350b4e68bc4 /src
parent7cd37f474739f666db310c65db9035591c3c7d78 (diff)
preview did not work anymore (KDirLister emits the signal newItems(const KFileItemList&) -> generatePreviews() from Dolphin must have the same signature)
svn path=/trunk/KDE/kdebase/apps/; revision=700834
Diffstat (limited to 'src')
-rw-r--r--src/dolphinview.cpp10
-rw-r--r--src/dolphinview.h2
2 files changed, 9 insertions, 3 deletions
diff --git a/src/dolphinview.cpp b/src/dolphinview.cpp
index 6053ac189..d74d9a64c 100644
--- a/src/dolphinview.cpp
+++ b/src/dolphinview.cpp
@@ -497,10 +497,16 @@ void DolphinView::triggerItem(const QModelIndex& index)
}
}
-void DolphinView::generatePreviews(const QList<KFileItem>& items)
+void DolphinView::generatePreviews(const KFileItemList& items)
{
if (m_controller->showPreview()) {
- KIO::PreviewJob* job = KIO::filePreview(items, 128);
+ // QList<KFileItem*> must be turned to QList<KFileItem>...
+ QList<KFileItem> itemsToPreview;
+ foreach (KFileItem* it, items) {
+ itemsToPreview.append(*it);
+ }
+
+ KIO::PreviewJob* job = KIO::filePreview(itemsToPreview, 128);
connect(job, SIGNAL(gotPreview(const KFileItem&, const QPixmap&)),
this, SLOT(showPreview(const KFileItem&, const QPixmap&)));
}
diff --git a/src/dolphinview.h b/src/dolphinview.h
index cd6bd977a..0ad8de772 100644
--- a/src/dolphinview.h
+++ b/src/dolphinview.h
@@ -406,7 +406,7 @@ private slots:
* The current preview settings (maximum size, 'Show Preview' menu)
* are respected.
*/
- void generatePreviews(const QList<KFileItem>& items);
+ void generatePreviews(const KFileItemList& items);
/**
* Replaces the icon of the item \a item by the preview pixmap