]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphiniconsview.h
reset the URL candidate if a resizing is done
[dolphin.git] / src / dolphiniconsview.h
index 6c3f6fa3858e170137674322d4fad7f761f614aa..05b21a2b0c53c44c55f120c35992aca3cc470e1a 100644 (file)
@@ -25,6 +25,7 @@
 #include <kfileitem.h>
 #include <kfileitemdelegate.h>
 
+#include <QFont>
 #include <QSize>
 #include <QStyleOption>
 
@@ -61,14 +62,16 @@ protected:
     virtual void dropEvent(QDropEvent* event);
     virtual void paintEvent(QPaintEvent* event);
     virtual void keyPressEvent(QKeyEvent* event);
+    virtual void wheelEvent(QWheelEvent* event);
 
 private slots:
     void triggerItem(const QModelIndex& index);
     void slotEntered(const QModelIndex& index);
     void slotShowPreviewChanged();
-    void slotAdditionalInfoChanged(const KFileItemDelegate::InformationList& info);
+    void slotAdditionalInfoChanged();
     void zoomIn();
     void zoomOut();
+    void requestActivation();
 
 private:
     bool isZoomInPossible() const;
@@ -89,16 +92,19 @@ private:
     KFileItem itemForIndex(const QModelIndex& index) const;
 
     /**
-     * Returns true, if the QListView-issue in QListView::visualRect()
-     * must be bypassed. TODO: this method is only temporary to have
-     * a usable drag & drop behavior until the issue in Qt is fixed.
+     * Returns the number of additional information lines that should
+     * be shown below the item name.
      */
-    bool bypassVisualRectIssue() const;
+    int additionalInfoCount() const;
 
 private:
     DolphinController* m_controller;
     DolphinCategoryDrawer* m_categoryDrawer;
-    QStyleOptionViewItem m_viewOptions;
+
+    QFont m_font;
+    QSize m_decorationSize;
+    QStyleOptionViewItem::Position m_decorationPosition;
+    Qt::Alignment m_displayAlignment;
 
     QSize m_itemSize;