]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphincontroller.cpp
Create a SidebarTreeView which will include support for drag & drop in later releases...
[dolphin.git] / src / dolphincontroller.cpp
index 8089cfd2b1451dbc4596b2d5c05eb59e0cf8b813..ea9c25211bdbdee895dfb44b1b985f2643c22683 100644 (file)
 #include "dolphincontroller.h"
 
 DolphinController::DolphinController(QObject* parent) :
-    QObject(parent)
+    QObject(parent),
+    m_showPreview(false),
+    m_zoomInPossible(false),
+    m_zoomOutPossible(false)
 {
 }
 
@@ -56,6 +59,24 @@ 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::triggerZoomIn()
+{
+    emit zoomIn();
+}
+
+void DolphinController::triggerZoomOut()
+{
+    emit zoomOut();
+}
+
 void DolphinController::triggerItem(const QModelIndex& index)
 {
     emit itemTriggered(index);