diff options
| author | Peter Penz <[email protected]> | 2007-02-28 19:17:26 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2007-02-28 19:17:26 +0000 |
| commit | a46551d63efd09b34fe33766533f6f5333737f22 (patch) | |
| tree | 219c1a0793f47e43079a1e3d7f7a7e1caf2ca3a1 /src/dolphincontroller.cpp | |
| parent | d38fc64a9f54747f07ca483f68b69f614abcf9f6 (diff) | |
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
Diffstat (limited to 'src/dolphincontroller.cpp')
| -rw-r--r-- | src/dolphincontroller.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
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); |
