21 #ifndef KCATEGORIZEDVIEW_H
22 #define KCATEGORIZEDVIEW_H
24 #include <QtGui/QListView>
83 Q_PROPERTY(
int categorySpacing READ categorySpacing WRITE setCategorySpacing)
84 Q_PROPERTY(
bool alternatingBlockColors READ alternatingBlockColors WRITE setAlternatingBlockColors)
85 Q_PROPERTY(
bool collapsibleBlocks READ collapsibleBlocks WRITE setCollapsibleBlocks)
100 void setGridSize(const
QSize &size);
128 void setGridSizeOwn(const
QSize &size);
133 virtual
QRect visualRect(const QModelIndex &index) const;
150 int categorySpacing() const;
157 void setCategorySpacing(
int categorySpacing);
164 bool alternatingBlockColors() const;
171 void setAlternatingBlockColors(
bool enable);
178 bool collapsibleBlocks() const;
185 void setCollapsibleBlocks(
bool enable);
192 QModelIndexList block(const
QString &category);
199 QModelIndexList block(const QModelIndex &representative);
204 virtual QModelIndex indexAt(const
QPoint &point) const;
209 virtual
void reset();
215 virtual
void paintEvent(QPaintEvent *event);
220 virtual
void resizeEvent(QResizeEvent *event);
225 virtual
void setSelection(const
QRect &rect,
231 virtual
void mouseMoveEvent(QMouseEvent *event);
236 virtual
void mousePressEvent(QMouseEvent *event);
241 virtual
void mouseReleaseEvent(QMouseEvent *event);
246 virtual
void leaveEvent(QEvent *event);
251 virtual
void startDrag(Qt::DropActions supportedActions);
256 virtual
void dragMoveEvent(QDragMoveEvent *event);
261 virtual
void dragEnterEvent(QDragEnterEvent *event);
266 virtual
void dragLeaveEvent(QDragLeaveEvent *event);
271 virtual
void dropEvent(QDropEvent *event);
276 virtual QModelIndex moveCursor(CursorAction cursorAction,
277 Qt::KeyboardModifiers modifiers);
282 virtual
void rowsAboutToBeRemoved(const QModelIndex &parent,
289 virtual
void updateGeometries();
294 virtual
void currentChanged(const QModelIndex ¤t,
295 const QModelIndex &previous);
300 virtual
void dataChanged(const QModelIndex &topLeft,
301 const QModelIndex &bottomRight);
306 virtual
void rowsInserted(const QModelIndex &parent,
315 #ifndef KDE_NO_DEPRECATED
316 virtual KDE_DEPRECATED
void rowsInsertedArtifficial(
const QModelIndex &parent,
325 #ifndef KDE_NO_DEPRECATED
326 virtual KDE_DEPRECATED
void rowsRemoved(
const QModelIndex &parent,
335 virtual void slotLayoutChanged();
341 Q_PRIVATE_SLOT(d,
void _k_slotCollapseOrExpandClicked(QModelIndex))
344 #endif // KCATEGORIZEDVIEW_H
Item view for listing items in a categorized fashion optionally.
KGuiItem reset()
Returns the 'Reset' gui item.
const KShortcut & end()
Goto end of the document.