KItemViews
kcategorizedview.h
43 * For drawing categories, KCategoryDrawer will be used. You can inherit this class to do your own
52 * @note There is a really performance boost if CategorySortRole returns an int instead of a QString.
71 Q_PROPERTY(int categorySpacing READ categorySpacing WRITE setCategorySpacing NOTIFY categorySpacingChanged)
72 Q_PROPERTY(bool alternatingBlockColors READ alternatingBlockColors WRITE setAlternatingBlockColors NOTIFY alternatingBlockColorsChanged)
73 Q_PROPERTY(bool collapsibleBlocks READ collapsibleBlocks WRITE setCollapsibleBlocks NOTIFY collapsibleBlocksChanged)
288 void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QList<int> &roles = QList<int>()) override;
void setCategorySpacing(int categorySpacing)
Stablishes the category spacing.
Definition kcategorizedview.cpp:635
KCategoryDrawer * categoryDrawer() const
Returns the current category drawer.
Definition kcategorizedview.cpp:614
void setCollapsibleBlocks(bool enable)
Sets whether blocks can be collapsed or not.
Definition kcategorizedview.cpp:670
void setAlternatingBlockColors(bool enable)
Sets whether blocks should be drawn with alternating colors.
Definition kcategorizedview.cpp:655
void setCategoryDrawer(KCategoryDrawer *categoryDrawer)
The category drawer that will be used for drawing categories.
Definition kcategorizedview.cpp:619
QModelIndexList block(const QString &category)
Definition kcategorizedview.cpp:680
void setGridSizeOwn(const QSize &size)
Definition kcategorizedview.cpp:528
virtual void slotLayoutChanged()
Definition kcategorizedview.cpp:1475
Q_SCRIPTABLE QString start(QString train="")
CursorAction
virtual void dragEnterEvent(QDragEnterEvent *event) override
QAbstractItemModel * model() const const
virtual void mousePressEvent(QMouseEvent *event) override
virtual void reset()
virtual void setModel(QAbstractItemModel *model)
typedef SelectionFlags
QListView(QWidget *parent)
virtual void currentChanged(const QModelIndex ¤t, const QModelIndex &previous) override
virtual void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QList< int > &roles) override
virtual void dragLeaveEvent(QDragLeaveEvent *e) override
virtual void dragMoveEvent(QDragMoveEvent *e) override
virtual void dropEvent(QDropEvent *event) override
virtual bool event(QEvent *e) override
void setGridSize(const QSize &size)
virtual QModelIndex indexAt(const QPoint &p) const const override
virtual void mouseMoveEvent(QMouseEvent *e) override
virtual void mouseReleaseEvent(QMouseEvent *e) override
virtual QModelIndex moveCursor(CursorAction cursorAction, Qt::KeyboardModifiers modifiers) override
virtual void paintEvent(QPaintEvent *e) override
virtual void resizeEvent(QResizeEvent *e) override
virtual void rowsAboutToBeRemoved(const QModelIndex &parent, int start, int end) override
virtual void rowsInserted(const QModelIndex &parent, int start, int end) override
virtual void setSelection(const QRect &rect, QItemSelectionModel::SelectionFlags command) override
spacing
virtual void startDrag(Qt::DropActions supportedActions) override
virtual void updateGeometries() override
virtual QRect visualRect(const QModelIndex &index) const const override
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QObject * parent() const const
typedef DropActions
typedef KeyboardModifiers
virtual void leaveEvent(QEvent *event)
rect
size
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:56:21 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:56:21 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.