]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphincolumnview.h
Move the Ctrl-wheel zoom handling to dolphinview.
[dolphin.git] / src / dolphincolumnview.h
index b12c5d82d4c0a6a8cc490a82921c891d6c86dcc9..6ac4fdb3f177986e1b8014109bf898397919e970 100644 (file)
@@ -20,6 +20,8 @@
 #ifndef DOLPHINCOLUMNVIEW_H
 #define DOLPHINCOLUMNVIEW_H
 
+#include "dolphinview.h"
+
 #include <kurl.h>
 
 #include <QAbstractItemView>
@@ -83,13 +85,13 @@ public:
      */
     QString nameFilter() const;
 
-public slots:
     /**
      * Shows the column which represents the URL \a url. If the column
      * is already shown, it gets activated, otherwise it will be created.
      */
     void showColumn(const KUrl& url);
 
+public slots:
     /** @see QAbstractItemView::selectAll() */
     virtual void selectAll();
 
@@ -103,6 +105,7 @@ protected:
 
     virtual void mousePressEvent(QMouseEvent* event);
     virtual void resizeEvent(QResizeEvent* event);
+    virtual void wheelEvent(QWheelEvent* event);
 
 private slots:
     void zoomIn();
@@ -128,8 +131,10 @@ private slots:
      */
     void updateColumnsBackground(bool active);
 
-    void slotShowHiddenFilesChanged(bool show);
-    void slotShowPreviewChanged(bool show);
+    void slotSortingChanged(DolphinView::Sorting sorting);
+    void slotSortOrderChanged(Qt::SortOrder order);
+    void slotShowHiddenFilesChanged();
+    void slotShowPreviewChanged();
 
 private:
     bool isZoomInPossible() const;
@@ -172,6 +177,7 @@ private:
     QList<DolphinColumnWidget*> m_columns;
     QFrame* m_emptyViewport;
     QTimeLine* m_animation;
+    QString m_nameFilter;
 
     friend class DolphinColumnWidget;
 };