26 #ifndef DIGIKAM_DCATEGORIZED_VIEW_H
27 #define DIGIKAM_DCATEGORIZED_VIEW_H
40 class DCategoryDrawer;
57 void setGridSize(
const QSize& size);
70 void setDrawDraggedItems(
bool drawDraggedItems);
72 void setModel(QAbstractItemModel* model)
override;
73 QRect visualRect(
const QModelIndex& index)
const override;
74 QModelIndex indexAt(
const QPoint& point)
const override;
81 virtual QModelIndexList categorizedIndexesIn(
const QRect& rect)
const;
88 virtual QRect categoryVisualRect(
const QModelIndex& index)
const;
95 virtual QModelIndex categoryAt(
const QPoint& point)
const;
102 virtual QItemSelectionRange categoryRange(
const QModelIndex& index)
const;
106 void reset()
override;
110 void paintEvent(QPaintEvent* event)
override;
112 void resizeEvent(QResizeEvent* event)
override;
114 void setSelection(
const QRect& rect, QItemSelectionModel::SelectionFlags flags)
override;
116 void mouseMoveEvent(QMouseEvent* event)
override;
118 void mousePressEvent(QMouseEvent* event)
override;
120 void mouseReleaseEvent(QMouseEvent* event)
override;
122 void leaveEvent(QEvent* event)
override;
124 void startDrag(Qt::DropActions supportedActions)
override;
126 void dragMoveEvent(QDragMoveEvent* event)
override;
128 void dragLeaveEvent(QDragLeaveEvent* event)
override;
130 void dropEvent(QDropEvent* event)
override;
132 QModelIndex moveCursor(CursorAction cursorAction, Qt::KeyboardModifiers modifiers)
override;
136 void rowsInserted(
const QModelIndex& parent,
int start,
int end)
override;
138 virtual void rowsInsertedArtifficial(
const QModelIndex& parent,
int start,
int end);
140 virtual void rowsRemoved(
const QModelIndex& parent,
int start,
int end);
142 void updateGeometries()
override;
144 virtual void slotLayoutChanged();
146 void currentChanged(
const QModelIndex& current,
const QModelIndex& previous)
override;
Definition: dcategorizedview_p.h:103
Item view for listing items.
Definition: dcategorizedview.h:49
Definition: dcategorydrawer.h:52
Definition: datefolderview.cpp:43