diff options
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); |
