┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphincolumnwidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/dolphincolumnwidget.h')
-rw-r--r--src/dolphincolumnwidget.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/dolphincolumnwidget.h b/src/dolphincolumnwidget.h
index 5cb7e1168..870246269 100644
--- a/src/dolphincolumnwidget.h
+++ b/src/dolphincolumnwidget.h
@@ -31,9 +31,14 @@ class DolphinColumnView;
class DolphinModel;
class DolphinSortFilterProxyModel;
class KDirLister;
+class KJob;
class KFileItem;
class KFileItemList;
class QPixmap;
+namespace KIO
+{
+ class PreviewJob;
+}
/**
* Represents one column inside the DolphinColumnView and has been
@@ -124,10 +129,16 @@ private slots:
* Replaces the icon of the item \a item by the preview pixmap
* \a pixmap.
*/
- void showPreview(const KFileItem& item, const QPixmap& pixmap);
+ void replaceIcon(const KFileItem& item, const QPixmap& pixmap);
void slotEntered(const QModelIndex& index);
+ /**
+ * Is invoked when the preview job has been finished and
+ * set m_previewJob to 0.
+ */
+ void slotPreviewJobFinished(KJob* job);
+
private:
/** Used by DolphinColumnWidget::setActive(). */
void activate();
@@ -157,6 +168,8 @@ private:
DolphinModel* m_dolphinModel;
DolphinSortFilterProxyModel* m_proxyModel;
+ KIO::PreviewJob* m_previewJob;
+
bool m_dragging; // TODO: remove this property when the issue #160611 is solved in Qt 4.4
QRect m_dropRect; // TODO: remove this property when the issue #160611 is solved in Qt 4.4
};