![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qtableview_p.h>
Public Types | |
| enum class | SearchDirection { Increasing , Decreasing } |
Public Member Functions | |
| QTableViewPrivate () | |
| void | init () |
| void | clearConnections () |
| void | trimHiddenSelections (QItemSelectionRange *rangerange) const |
| QRect | intersectedRect (const QRect rect, const QModelIndex &topLeft, const QModelIndex &bottomRight) const override |
| bool | isHidden (int rowrow, int col) const |
| int | visualRow (int logicalRow) const |
| int | visualColumn (int logicalCol) const |
| int | logicalRow (int visualRow) const |
| int | logicalColumn (int visualCol) const |
| QStyleOptionViewItem::ViewItemPosition | viewItemPosition (const QModelIndex &indexindex) const |
| int | sectionSpanEndLogical (const QHeaderView *header, int logical, int spanspan) const |
| int | sectionSpanSize (const QHeaderView *header, int logical, int spanspan) const |
| bool | spanContainsSection (const QHeaderView *header, int logical, int spanLogical, int spanspan) const |
| void | drawAndClipSpans (const QRegion &area, QPainter *painter, const QStyleOptionViewItem &optionoption, QBitArray *drawn, int firstVisualRow, int lastVisualRow, int firstVisualColumn, int lastVisualColumn) |
| void | drawCell (QPainter *painter, const QStyleOptionViewItem &optionoption, const QModelIndex &indexindex) |
| int | widthHintForIndex (const QModelIndex &indexindex, int hint, const QStyleOptionViewItem &optionoption) const |
| int | heightHintForIndex (const QModelIndex &indexindex, int hint, QStyleOptionViewItem &optionoption) const |
| void | setSpan (int rowrow, int columncolumn, int rowSpan, int columnSpan) |
| QSpanCollection::Span | span (int rowrow, int columncolumn) const |
| int | rowSpan (int rowrow, int columncolumn) const |
| int | columnSpan (int rowrow, int columncolumn) const |
| bool | hasSpans () const |
| int | rowSpanHeight (int rowrow, int spanspan) const |
| int | columnSpanWidth (int columncolumn, int spanspan) const |
| int | rowSpanEndLogical (int rowrow, int spanspan) const |
| int | columnSpanEndLogical (int columncolumn, int spanspan) const |
| bool | isRowHidden (int rowrow) const |
| bool | isColumnHidden (int columncolumn) const |
| bool | isCellEnabled (int rowrow, int columncolumn) const |
| int | nextActiveVisualRow (int rowToStart, int columncolumn, int limitlimit, SearchDirection searchDirection) const |
| int | nextActiveVisualColumn (int rowrow, int columnToStart, int limitlimit, SearchDirection searchDirection) const |
| QRect | visualSpanRect (const QSpanCollection::Span &spanspan) const |
| void | selectRow (int rowrow, bool anchor) |
| void | selectColumn (int columncolumn, bool anchor) |
| void | updateSpanInsertedRows (const QModelIndex &parent, int startstart, int endend) |
| void | updateSpanInsertedColumns (const QModelIndex &parent, int startstart, int endend) |
| void | updateSpanRemovedRows (const QModelIndex &parent, int startstart, int endend) |
| void | updateSpanRemovedColumns (const QModelIndex &parent, int startstart, int endend) |
| void | sortIndicatorChanged (int columncolumn, Qt::SortOrder orderorder) |
| Public Member Functions inherited from QAbstractItemViewPrivate | |
| QAbstractItemViewPrivate () | |
| virtual | ~QAbstractItemViewPrivate () |
| void | init () |
| virtual void | rowsRemoved (const QModelIndex &parent, int startstart, int endend) |
| virtual void | rowsInserted (const QModelIndex &parent, int startstart, int endend) |
| virtual void | columnsAboutToBeRemoved (const QModelIndex &parent, int startstart, int endend) |
| virtual void | columnsRemoved (const QModelIndex &parent, int startstart, int endend) |
| virtual void | columnsInserted (const QModelIndex &parent, int startstart, int endend) |
| virtual void | modelDestroyed () |
| virtual void | layoutChanged () |
| virtual void | rowsMoved (const QModelIndex &sourcesource, int sourceStart, int sourceEnd, const QModelIndex &destination, int destinationStart) |
| virtual void | columnsMoved (const QModelIndex &sourcesource, int sourceStart, int sourceEnd, const QModelIndex &destination, int destinationStart) |
| void | headerDataChanged () |
| void | scrollerStateChanged () |
| void | delegateSizeHintChanged (const QModelIndex &indexindex) |
| void | fetchMore () |
| bool | shouldEdit (QAbstractItemView::EditTrigger trigger, const QModelIndex &indexindex) const |
| bool | shouldForwardEvent (QAbstractItemView::EditTrigger trigger, const QEvent *eventevent) const |
| bool | shouldAutoScroll (const QPoint &pos) const |
| void | doDelayedItemsLayout (int delay=0) |
| void | interruptDelayedItemsLayout () const |
| void | updateGeometry () |
| void | startAutoScroll () |
| void | stopAutoScroll () |
| bool | droppingOnItself (QDropEvent *eventevent, const QModelIndex &indexindex) |
| QWidget * | editor (const QModelIndex &indexindex, const QStyleOptionViewItem &options) |
| bool | sendDelegateEvent (const QModelIndex &indexindex, QEvent *eventevent) const |
| bool | openEditor (const QModelIndex &indexindex, QEvent *eventevent) |
| void | updateEditorData (const QModelIndex &topLeft, const QModelIndex &bottomRight) |
| void | selectAllInEditor (QWidget *ww) |
| QItemSelectionModel::SelectionFlags | multiSelectionCommand (const QModelIndex &indexindex, const QEvent *eventevent) const |
| QItemSelectionModel::SelectionFlags | extendedSelectionCommand (const QModelIndex &indexindex, const QEvent *eventevent) const |
| QItemSelectionModel::SelectionFlags | contiguousSelectionCommand (const QModelIndex &indexindex, const QEvent *eventevent) const |
| virtual void | selectAll (QItemSelectionModel::SelectionFlags command) |
| void | setHoverIndex (const QPersistentModelIndex &indexindex) |
| void | checkMouseMove (const QPersistentModelIndex &indexindex) |
| void | checkMouseMove (const QPoint &pos) |
| QItemSelectionModel::SelectionFlags | selectionBehaviorFlags () const |
| virtual QItemViewPaintPairs | draggablePaintPairs (const QModelIndexList &indexes, QRect *rr) const |
| virtual void | adjustViewOptionsForIndex (QStyleOptionViewItem *, const QModelIndex &) const |
| void | releaseEditor (QWidget *editor, const QModelIndex &indexindex=QModelIndex()) const |
| void | executePostedLayout () const |
| void | setDirtyRegion (const QRegion &visualRegion) |
| void | scrollDirtyRegion (int dx, int dy) |
| void | scrollContentsBy (int dx, int dy) |
| void | updateDirtyRegion () |
| void | clearOrRemove () |
| void | checkPersistentEditorFocus () |
| QPixmap | renderToPixmap (const QModelIndexList &indexes, QRect *rr) const |
| QPoint | offset () const |
| const QEditorInfo & | editorForIndex (const QModelIndex &indexindex) const |
| bool | hasEditor (const QModelIndex &indexindex) const |
| QModelIndex | indexForEditor (QWidget *editor) const |
| void | addEditor (const QModelIndex &indexindex, QWidget *editor, bool isStatic) |
| void | removeEditor (QWidget *editor) |
| bool | isAnimating () const |
| bool | isIndexValid (const QModelIndex &indexindex) const |
| bool | isIndexSelectable (const QModelIndex &indexindex) const |
| bool | isIndexEnabled (const QModelIndex &indexindex) const |
| virtual bool | selectionAllowed (const QModelIndex &indexindex) const |
| QPoint | contentsOffset () const override |
| int | delegateRefCount (const QAbstractItemDelegate *delegate) const |
| bool | isPersistent (const QModelIndex &indexindex) const |
| void | doDelayedReset () |
| virtual QRect | visualRect (const QModelIndex &indexindex) const |
Definition at line 104 of file qtableview_p.h.
|
strong |
| Enumerator | |
|---|---|
| Increasing | |
| Decreasing | |
Definition at line 221 of file qtableview_p.h.
|
inline |
Definition at line 108 of file qtableview_p.h.
| void QTableViewPrivate::clearConnections | ( | ) |
Definition at line 607 of file qtableview.cpp.
|
inline |
Definition at line 192 of file qtableview_p.h.
|
inline |
Definition at line 207 of file qtableview_p.h.
|
inline |
Definition at line 201 of file qtableview_p.h.
| void QTableViewPrivate::drawAndClipSpans | ( | const QRegion & | area, |
| QPainter * | painter, | ||
| const QStyleOptionViewItem & | option, | ||
| QBitArray * | drawn, | ||
| int | firstVisualRow, | ||
| int | lastVisualRow, | ||
| int | firstVisualColumn, | ||
| int | lastVisualColumn ) |
Draws the spanning cells within rect area, and clips them off as preparation for the main drawing loop. drawn is a QBitArray of visualRowCountxvisualCoulumnCount which say if particular cell has been drawn
Definition at line 894 of file qtableview.cpp.
| void QTableViewPrivate::drawCell | ( | QPainter * | painter, |
| const QStyleOptionViewItem & | option, | ||
| const QModelIndex & | index ) |
Draws a table cell.
Definition at line 1051 of file qtableview.cpp.
|
inline |
Definition at line 195 of file qtableview_p.h.
| int QTableViewPrivate::heightHintForIndex | ( | const QModelIndex & | index, |
| int | hint, | ||
| QStyleOptionViewItem & | option ) const |
Get sizeHint height for single Index (providing existing hint and style option)
Definition at line 1117 of file qtableview.cpp.
| void QTableViewPrivate::init | ( | ) |
Definition at line 580 of file qtableview.cpp.
|
overridevirtual |
Reimplemented from QAbstractItemViewPrivate.
Definition at line 661 of file qtableview.cpp.
|
inline |
Definition at line 217 of file qtableview_p.h.
|
inline |
Definition at line 214 of file qtableview_p.h.
|
inline |
Definition at line 124 of file qtableview_p.h.
|
inline |
Definition at line 211 of file qtableview_p.h.
|
inline |
Definition at line 137 of file qtableview_p.h.
|
inline |
Definition at line 134 of file qtableview_p.h.
| int QTableViewPrivate::nextActiveVisualColumn | ( | int | row, |
| int | columnToStart, | ||
| int | limit, | ||
| SearchDirection | searchDirection ) const |
Searches for the next cell which is available for e.g. keyboard navigation The search is done by column
Definition at line 841 of file qtableview.cpp.
| int QTableViewPrivate::nextActiveVisualRow | ( | int | rowToStart, |
| int | column, | ||
| int | limit, | ||
| SearchDirection | searchDirection ) const |
Searches for the next cell which is available for e.g. keyboard navigation The search is done by row
Definition at line 809 of file qtableview.cpp.
|
inline |
Definition at line 189 of file qtableview_p.h.
|
inline |
Definition at line 204 of file qtableview_p.h.
|
inline |
Definition at line 198 of file qtableview_p.h.
| int QTableViewPrivate::sectionSpanEndLogical | ( | const QHeaderView * | header, |
| int | logical, | ||
| int | span ) const |
Returns the logical index of the last section that's part of the span.
Definition at line 757 of file qtableview.cpp.
| int QTableViewPrivate::sectionSpanSize | ( | const QHeaderView * | header, |
| int | logical, | ||
| int | span ) const |
Returns the size of the span starting at logical index logical and spanning span sections.
Definition at line 774 of file qtableview.cpp.
| void QTableViewPrivate::selectColumn | ( | int | column, |
| bool | anchor ) |
Definition at line 3534 of file qtableview.cpp.
| void QTableViewPrivate::selectRow | ( | int | row, |
| bool | anchor ) |
Definition at line 3487 of file qtableview.cpp.
| void QTableViewPrivate::setSpan | ( | int | row, |
| int | column, | ||
| int | rowSpan, | ||
| int | columnSpan ) |
Sets the span for the cell at (row, column).
Definition at line 711 of file qtableview.cpp.
| void QTableViewPrivate::sortIndicatorChanged | ( | int | column, |
| Qt::SortOrder | order ) |
Sort the model when the header sort indicator changed
Definition at line 1023 of file qtableview.cpp.
| QSpanCollection::Span QTableViewPrivate::span | ( | int | row, |
| int | column ) const |
Gets the span information for the cell at (row, column).
Definition at line 744 of file qtableview.cpp.
| bool QTableViewPrivate::spanContainsSection | ( | const QHeaderView * | header, |
| int | logical, | ||
| int | spanLogical, | ||
| int | span ) const |
Returns true if the section at logical index logical is part of the span starting at logical index spanLogical and spanning span sections; otherwise, returns false.
Definition at line 788 of file qtableview.cpp.
| void QTableViewPrivate::trimHiddenSelections | ( | QItemSelectionRange * | range | ) | const |
Trims away indices that are hidden in the treeview due to hidden horizontal or vertical sections.
Definition at line 627 of file qtableview.cpp.
| void QTableViewPrivate::updateSpanInsertedColumns | ( | const QModelIndex & | parent, |
| int | start, | ||
| int | end ) |
Updates spans after column insertion.
Definition at line 993 of file qtableview.cpp.
| void QTableViewPrivate::updateSpanInsertedRows | ( | const QModelIndex & | parent, |
| int | start, | ||
| int | end ) |
Updates spans after row insertion.
Definition at line 983 of file qtableview.cpp.
| void QTableViewPrivate::updateSpanRemovedColumns | ( | const QModelIndex & | parent, |
| int | start, | ||
| int | end ) |
Updates spans after column removal.
Definition at line 1013 of file qtableview.cpp.
| void QTableViewPrivate::updateSpanRemovedRows | ( | const QModelIndex & | parent, |
| int | start, | ||
| int | end ) |
Updates spans after row removal.
Definition at line 1003 of file qtableview.cpp.
| QStyleOptionViewItem::ViewItemPosition QTableViewPrivate::viewItemPosition | ( | const QModelIndex & | index | ) | const |
Definition at line 1028 of file qtableview.cpp.
|
inline |
Definition at line 131 of file qtableview_p.h.
|
inline |
Definition at line 128 of file qtableview_p.h.
| QRect QTableViewPrivate::visualSpanRect | ( | const QSpanCollection::Span & | span | ) | const |
Returns the visual rect for the given span.
Definition at line 868 of file qtableview.cpp.
| int QTableViewPrivate::widthHintForIndex | ( | const QModelIndex & | index, |
| int | hint, | ||
| const QStyleOptionViewItem & | option ) const |
Get sizeHint width for single Index (providing existing hint and style option)
Definition at line 1087 of file qtableview.cpp.
| QBasicTimer QTableViewPrivate::columnResizeTimer |
Definition at line 165 of file qtableview_p.h.
| QList<int> QTableViewPrivate::columnsToUpdate |
Definition at line 167 of file qtableview_p.h.
| std::array<QMetaObject::Connection, 2> QTableViewPrivate::dynHorHeaderConnections |
Definition at line 179 of file qtableview_p.h.
| bool QTableViewPrivate::geometryRecursionBlock |
Definition at line 182 of file qtableview_p.h.
| Qt::PenStyle QTableViewPrivate::gridStyle |
Definition at line 164 of file qtableview_p.h.
| std::array<QMetaObject::Connection, 5> QTableViewPrivate::horHeaderConnections |
Definition at line 178 of file qtableview_p.h.
| QHeaderView* QTableViewPrivate::horizontalHeader |
Definition at line 169 of file qtableview_p.h.
| std::array<QMetaObject::Connection, 4> QTableViewPrivate::modelConnections |
Definition at line 176 of file qtableview_p.h.
| QBasicTimer QTableViewPrivate::rowResizeTimer |
Definition at line 166 of file qtableview_p.h.
| QList<int> QTableViewPrivate::rowsToUpdate |
Definition at line 168 of file qtableview_p.h.
| QMetaObject::Connection QTableViewPrivate::selectionmodelConnection |
Definition at line 175 of file qtableview_p.h.
| bool QTableViewPrivate::showGrid |
Definition at line 163 of file qtableview_p.h.
| bool QTableViewPrivate::sortingEnabled |
Definition at line 181 of file qtableview_p.h.
| QSpanCollection QTableViewPrivate::spans |
Definition at line 185 of file qtableview_p.h.
| std::array<QMetaObject::Connection, 7> QTableViewPrivate::verHeaderConnections |
Definition at line 177 of file qtableview_p.h.
| QHeaderView* QTableViewPrivate::verticalHeader |
Definition at line 170 of file qtableview_p.h.
| QPoint QTableViewPrivate::visualCursor |
Definition at line 183 of file qtableview_p.h.