From a46551d63efd09b34fe33766533f6f5333737f22 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Wed, 28 Feb 2007 19:17:26 +0000 Subject: Jippie: file previews are generated again! Thanks to Fredrik for giving me a hint how to do it (if I would have known that it is so easy, I'd have implemented it already some weeks ago...). It's very nice that the details view now also is able to show previews (Kudos to Interview & KDirModel). svn path=/trunk/KDE/kdebase/apps/; revision=638081 --- src/dolphincontroller.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/dolphincontroller.cpp') diff --git a/src/dolphincontroller.cpp b/src/dolphincontroller.cpp index 8089cfd2b..e1d4c48e3 100644 --- a/src/dolphincontroller.cpp +++ b/src/dolphincontroller.cpp @@ -20,7 +20,8 @@ #include "dolphincontroller.h" DolphinController::DolphinController(QObject* parent) : - QObject(parent) + QObject(parent), + m_showPreview(false) { } @@ -56,6 +57,14 @@ void DolphinController::indicateSortOrderChange(Qt::SortOrder order) emit sortOrderChanged(order); } +void DolphinController::setShowPreview(bool showPreview) +{ + if (m_showPreview != showPreview) { + m_showPreview = showPreview; + emit showPreviewChanged(showPreview); + } +} + void DolphinController::triggerItem(const QModelIndex& index) { emit itemTriggered(index); -- cgit v1.3