#include <kfileitem.h>
#include <kfileitemdelegate.h>
+#include <QFont>
#include <QSize>
#include <QStyleOption>
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;
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;