]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphiniconsview.h
fixed issue that the information panel shows wrong meta data when having split views...
[dolphin.git] / src / dolphiniconsview.h
index 7e88f39bde3ae0161efb3fff70e8427465a1093d..fbbbce0ecbd87de2f1f91cd33bfc483feb4f1739 100644 (file)
@@ -22,6 +22,9 @@
 
 #include <kcategorizedview.h>
 
+#include <kfileitem.h>
+#include <kfileitemdelegate.h>
+
 #include <QSize>
 #include <QStyleOption>
 
@@ -51,6 +54,7 @@ protected:
     virtual QStyleOptionViewItem viewOptions() const;
     virtual void contextMenuEvent(QContextMenuEvent* event);
     virtual void mousePressEvent(QMouseEvent* event);
+    virtual void startDrag(Qt::DropActions supportedActions);
     virtual void dragEnterEvent(QDragEnterEvent* event);
     virtual void dragLeaveEvent(QDragLeaveEvent* event);
     virtual void dragMoveEvent(QDragMoveEvent* event);
@@ -59,8 +63,10 @@ protected:
     virtual void keyPressEvent(QKeyEvent* event);
 
 private slots:
-    void slotShowPreviewChanged(bool show);
-    void slotAdditionalInfoCountChanged(int count);
+    void triggerItem(const QModelIndex& index);
+    void slotEntered(const QModelIndex& index);
+    void slotShowPreviewChanged();
+    void slotAdditionalInfoChanged(const KFileItemDelegate::InformationList& info);
     void zoomIn();
     void zoomOut();
 
@@ -80,6 +86,14 @@ private:
      */
     void updateGridSize(bool showPreview, int additionalInfoCount);
 
+    KFileItem itemForIndex(const QModelIndex& index) const;
+
+    /**
+     * Returns the number of additional information lines that should
+     * be shown below the item name.
+     */
+    int additionalInfoCount() const;
+
 private:
     DolphinController* m_controller;
     DolphinCategoryDrawer* m_categoryDrawer;