KDEUI
KCategorizedView Class Reference
Item view for listing items. More...
#include <kcategorizedview.h>
Public Slots | |
| virtual void | reset () |
Public Member Functions | |
| KCategoryDrawer * | categoryDrawer () const |
| virtual QModelIndex | indexAt (const QPoint &point) const |
| KCategorizedView (QWidget *parent=0) | |
| void | setCategoryDrawer (KCategoryDrawer *categoryDrawer) |
| void | setGridSize (const QSize &size) |
| virtual void | setModel (QAbstractItemModel *model) |
| virtual QRect | visualRect (const QModelIndex &index) const |
| ~KCategorizedView () | |
Protected Slots | |
| virtual void | currentChanged (const QModelIndex ¤t, const QModelIndex &previous) |
| virtual void | dataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight) |
| virtual void | rowsInserted (const QModelIndex &parent, int start, int end) |
| virtual void | rowsInsertedArtifficial (const QModelIndex &parent, int start, int end) |
| virtual void | rowsRemoved (const QModelIndex &parent, int start, int end) |
| virtual void | slotLayoutChanged () |
| virtual void | updateGeometries () |
Protected Member Functions | |
| virtual void | dragLeaveEvent (QDragLeaveEvent *event) |
| virtual void | dragMoveEvent (QDragMoveEvent *event) |
| virtual void | dropEvent (QDropEvent *event) |
| virtual void | leaveEvent (QEvent *event) |
| virtual void | mouseMoveEvent (QMouseEvent *event) |
| virtual void | mousePressEvent (QMouseEvent *event) |
| virtual void | mouseReleaseEvent (QMouseEvent *event) |
| virtual QModelIndex | moveCursor (CursorAction cursorAction, Qt::KeyboardModifiers modifiers) |
| virtual void | paintEvent (QPaintEvent *event) |
| virtual void | resizeEvent (QResizeEvent *event) |
| virtual void | setSelection (const QRect &rect, QItemSelectionModel::SelectionFlags flags) |
| virtual void | startDrag (Qt::DropActions supportedActions) |
Detailed Description
Item view for listing items.
KCategorizedView allows you to use it as it were a QListView. Subclass KCategorizedSortFilterProxyModel to provide category information for items.
- See also:
- KCategorizedSortFilterProxyModel
Definition at line 40 of file kcategorizedview.h.
Constructor & Destructor Documentation
| KCategorizedView::KCategorizedView | ( | QWidget * | parent = 0 |
) |
Definition at line 536 of file kcategorizedview.cpp.
| KCategorizedView::~KCategorizedView | ( | ) |
Definition at line 542 of file kcategorizedview.cpp.
Member Function Documentation
| KCategoryDrawer * KCategorizedView::categoryDrawer | ( | ) | const |
Definition at line 626 of file kcategorizedview.cpp.
| void KCategorizedView::currentChanged | ( | const QModelIndex & | current, | |
| const QModelIndex & | previous | |||
| ) | [protected, virtual, slot] |
Definition at line 1615 of file kcategorizedview.cpp.
| void KCategorizedView::dataChanged | ( | const QModelIndex & | topLeft, | |
| const QModelIndex & | bottomRight | |||
| ) | [protected, virtual, slot] |
Definition at line 1650 of file kcategorizedview.cpp.
| void KCategorizedView::dragLeaveEvent | ( | QDragLeaveEvent * | event | ) | [protected, virtual] |
Definition at line 1266 of file kcategorizedview.cpp.
| void KCategorizedView::dragMoveEvent | ( | QDragMoveEvent * | event | ) | [protected, virtual] |
Definition at line 1233 of file kcategorizedview.cpp.
| void KCategorizedView::dropEvent | ( | QDropEvent * | event | ) | [protected, virtual] |
Definition at line 1277 of file kcategorizedview.cpp.
| QModelIndex KCategorizedView::indexAt | ( | const QPoint & | point | ) | const [virtual] |
Definition at line 685 of file kcategorizedview.cpp.
| void KCategorizedView::leaveEvent | ( | QEvent * | event | ) | [protected, virtual] |
Definition at line 1205 of file kcategorizedview.cpp.
| void KCategorizedView::mouseMoveEvent | ( | QMouseEvent * | event | ) | [protected, virtual] |
Definition at line 1032 of file kcategorizedview.cpp.
| void KCategorizedView::mousePressEvent | ( | QMouseEvent * | event | ) | [protected, virtual] |
Definition at line 1101 of file kcategorizedview.cpp.
| void KCategorizedView::mouseReleaseEvent | ( | QMouseEvent * | event | ) | [protected, virtual] |
Definition at line 1130 of file kcategorizedview.cpp.
| QModelIndex KCategorizedView::moveCursor | ( | CursorAction | cursorAction, | |
| Qt::KeyboardModifiers | modifiers | |||
| ) | [protected, virtual] |
Definition at line 1286 of file kcategorizedview.cpp.
| void KCategorizedView::paintEvent | ( | QPaintEvent * | event | ) | [protected, virtual] |
Definition at line 723 of file kcategorizedview.cpp.
| void KCategorizedView::reset | ( | ) | [virtual, slot] |
Definition at line 704 of file kcategorizedview.cpp.
| void KCategorizedView::resizeEvent | ( | QResizeEvent * | event | ) | [protected, virtual] |
Definition at line 873 of file kcategorizedview.cpp.
| void KCategorizedView::rowsInserted | ( | const QModelIndex & | parent, | |
| int | start, | |||
| int | end | |||
| ) | [protected, virtual, slot] |
Definition at line 1480 of file kcategorizedview.cpp.
| void KCategorizedView::rowsInsertedArtifficial | ( | const QModelIndex & | parent, | |
| int | start, | |||
| int | end | |||
| ) | [protected, virtual, slot] |
Definition at line 1507 of file kcategorizedview.cpp.
| void KCategorizedView::rowsRemoved | ( | const QModelIndex & | parent, | |
| int | start, | |||
| int | end | |||
| ) | [protected, virtual, slot] |
Definition at line 1583 of file kcategorizedview.cpp.
| void KCategorizedView::setCategoryDrawer | ( | KCategoryDrawer * | categoryDrawer | ) |
Definition at line 631 of file kcategorizedview.cpp.
| void KCategorizedView::setGridSize | ( | const QSize & | size | ) |
Definition at line 547 of file kcategorizedview.cpp.
| void KCategorizedView::setModel | ( | QAbstractItemModel * | model | ) | [virtual] |
Definition at line 554 of file kcategorizedview.cpp.
| void KCategorizedView::setSelection | ( | const QRect & | rect, | |
| QItemSelectionModel::SelectionFlags | flags | |||
| ) | [protected, virtual] |
Definition at line 890 of file kcategorizedview.cpp.
| void KCategorizedView::slotLayoutChanged | ( | ) | [protected, virtual, slot] |
Definition at line 1610 of file kcategorizedview.cpp.
| void KCategorizedView::startDrag | ( | Qt::DropActions | supportedActions | ) | [protected, virtual] |
Definition at line 1213 of file kcategorizedview.cpp.
| void KCategorizedView::updateGeometries | ( | ) | [protected, virtual, slot] |
Definition at line 1597 of file kcategorizedview.cpp.
| QRect KCategorizedView::visualRect | ( | const QModelIndex & | index | ) | const [virtual] |
Definition at line 611 of file kcategorizedview.cpp.
The documentation for this class was generated from the following files:
KDE 4.3 API Reference