![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
\inmodule QtWidgets More...
#include <qtreeview_p.h>
Public Types | |
| enum class | ExpandItems { AllLevels , RootOnly } |
| enum class | InitializeNewItems { Initialize , DontInitialize } |
| enum | RectRule { FullRow , SingleSection , AddRowIndicatorToFirstSection } |
Public Member Functions | |
| QTreeViewPrivate () | |
| ~QTreeViewPrivate () | |
| void | initialize () |
| void | clearConnections () |
| int | logicalIndexForTree () const |
| bool | isTreePosition (int logicalIndex) const |
| QItemViewPaintPairs | draggablePaintPairs (const QModelIndexList &indexes, QRect *rr) const override |
| \reimp | |
| void | adjustViewOptionsForIndex (QStyleOptionViewItem *optionoption, const QModelIndex ¤t) const override |
| void | expand (int item, bool emitSignal) |
| void | collapse (int item, bool emitSignal) |
| void | columnsAboutToBeRemoved (const QModelIndex &, int, int) override |
| void | columnsRemoved (const QModelIndex &, int, int) override |
| void | modelAboutToBeReset () |
| void | sortIndicatorChanged (int columncolumn, Qt::SortOrder orderorder) |
| void | modelDestroyed () override |
| QRect | intersectedRect (const QRect rect, const QModelIndex &topLeft, const QModelIndex &bottomRight) const override |
| void | layout (int item, ExpandItems expandItems, InitializeNewItems initializeNewItems) |
| void | doItemsLayout (ExpandItems expandItems, InitializeNewItems initializeNewItems) |
| int | pageUp (int item) const |
| int | pageDown (int item) const |
| int | itemForKeyHome () const |
| int | itemForKeyEnd () const |
| int | itemHeight (int item) const |
| int | indentationForItem (int item) const |
| int | coordinateForItem (int item) const |
| int | itemAtCoordinate (int coordinate) const |
| int | viewIndex (const QModelIndex &indexindex) const |
| QModelIndex | modelIndex (int i, int columncolumn=0) const |
| void | insertViewItems (int pos, int countcount, const QTreeViewItem &viewItem) |
| void | removeViewItems (int pos, int countcount) |
| int | firstVisibleItem (int *offsetoffset=nullptr) const |
| int | lastVisibleItem (int firstVisual=-1, int offsetoffset=-1) const |
| int | columnAt (int xx) const |
| bool | hasVisibleChildren (const QModelIndex &parent) const |
| bool | expandOrCollapseItemAtPos (const QPoint &pos) |
| void | updateScrollBars () |
| int | itemDecorationAt (const QPoint &pos) const |
| QRect | itemDecorationRect (const QModelIndex &indexindex) const |
| QList< std::pair< int, int > > | columnRanges (const QModelIndex &topIndex, const QModelIndex &bottomIndex) const |
| void | select (const QModelIndex &startstart, const QModelIndex &stop, QItemSelectionModel::SelectionFlags command) |
| std::pair< int, int > | startAndEndColumns (const QRect &rect) const |
| void | updateChildCount (const int parentItem, const int delta) |
| void | paintAlternatingRowColors (QPainter *painter, QStyleOptionViewItem *optionoption, int yy, int bottombottom) const |
| void | calcLogicalIndices (QList< int > *logicalIndices, QList< QStyleOptionViewItem::ViewItemPosition > *itemPositions, int leftleft, int rightright) const |
| int | widthHintForIndex (const QModelIndex &indexindex, int hint, const QStyleOptionViewItem &optionoption, int i) const |
| QRect | visualRect (const QModelIndex &indexindex) const override |
| QRect | visualRect (const QModelIndex &indexindex, RectRule rule) const |
| bool | storeExpanded (const QPersistentModelIndex &idx) |
| bool | isIndexExpanded (const QModelIndex &idx) const |
| bool | isRowHidden (const QModelIndex &idx) const |
| bool | isItemHiddenOrDisabled (int i) const |
| int | above (int item) const |
| int | below (int item) const |
| void | invalidateHeightCache (int item) const |
| int | accessibleTable2Index (const QModelIndex &indexindex) const |
| void | updateIndentationFromStyle () |
| void | updateAccessibility () |
| 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 | columnsInserted (const QModelIndex &parent, int startstart, int endend) |
| 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 |
| 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 () |
\inmodule QtWidgets
Definition at line 52 of file qtreeview_p.h.
|
strong |
| Enumerator | |
|---|---|
| AllLevels | |
| RootOnly | |
Definition at line 56 of file qtreeview_p.h.
|
strong |
| Enumerator | |
|---|---|
| Initialize | |
| DontInitialize | |
Definition at line 57 of file qtreeview_p.h.
| Enumerator | |
|---|---|
| FullRow | |
| SingleSection | |
| AddRowIndicatorToFirstSection | |
Definition at line 160 of file qtreeview_p.h.
|
inline |
Definition at line 59 of file qtreeview_p.h.
|
inline |
Definition at line 70 of file qtreeview_p.h.
|
inline |
Definition at line 226 of file qtreeview_p.h.
|
inline |
Definition at line 233 of file qtreeview_p.h.
|
overridevirtual |
Reimplemented from QAbstractItemViewPrivate.
Definition at line 1503 of file qtreeview.cpp.
|
inline |
Definition at line 228 of file qtreeview_p.h.
| void QTreeViewPrivate::calcLogicalIndices | ( | QList< int > * | logicalIndices, |
| QList< QStyleOptionViewItem::ViewItemPosition > * | itemPositions, | ||
| int | left, | ||
| int | right ) const |
Definition at line 1616 of file qtreeview.cpp.
| void QTreeViewPrivate::clearConnections | ( | ) |
Definition at line 3155 of file qtreeview.cpp.
| void QTreeViewPrivate::collapse | ( | int | item, |
| bool | emitSignal ) |
Definition at line 3221 of file qtreeview.cpp.
| int QTreeViewPrivate::columnAt | ( | int | x | ) | const |
Definition at line 3810 of file qtreeview.cpp.
| QList< std::pair< int, int > > QTreeViewPrivate::columnRanges | ( | const QModelIndex & | topIndex, |
| const QModelIndex & | bottomIndex ) const |
Definition at line 3938 of file qtreeview.cpp.
|
overridevirtual |
This slot is called when columns are about to be removed. The deleted columns are those under the given parent from start to end inclusive.
Reimplemented from QAbstractItemViewPrivate.
Definition at line 3381 of file qtreeview.cpp.
|
overridevirtual |
This slot is called when columns have been removed. The deleted rows are those under the given parent from start to end inclusive.
Reimplemented from QAbstractItemViewPrivate.
Definition at line 3388 of file qtreeview.cpp.
| int QTreeViewPrivate::coordinateForItem | ( | int | item | ) | const |
Returns the viewport y coordinate for item.
Definition at line 3608 of file qtreeview.cpp.
| void QTreeViewPrivate::doItemsLayout | ( | ExpandItems | expandItems, |
| InitializeNewItems | initializeNewItems ) |
Definition at line 2192 of file qtreeview.cpp.
|
overridevirtual |
\reimp
We have a QTreeView way of knowing what elements are on the viewport
Reimplemented from QAbstractItemViewPrivate.
Definition at line 1488 of file qtreeview.cpp.
| void QTreeViewPrivate::expand | ( | int | item, |
| bool | emitSignal ) |
Definition at line 3168 of file qtreeview.cpp.
| bool QTreeViewPrivate::expandOrCollapseItemAtPos | ( | const QPoint & | pos | ) |
Definition at line 1392 of file qtreeview.cpp.
| int QTreeViewPrivate::firstVisibleItem | ( | int * | offset = nullptr | ) | const |
Definition at line 3763 of file qtreeview.cpp.
| bool QTreeViewPrivate::hasVisibleChildren | ( | const QModelIndex & | parent | ) | const |
Definition at line 4060 of file qtreeview.cpp.
| int QTreeViewPrivate::indentationForItem | ( | int | item | ) | const |
Definition at line 3575 of file qtreeview.cpp.
| void QTreeViewPrivate::initialize | ( | ) |
Definition at line 3131 of file qtreeview.cpp.
| void QTreeViewPrivate::insertViewItems | ( | int | pos, |
| int | count, | ||
| const QTreeViewItem & | viewItem ) |
Definition at line 3203 of file qtreeview.cpp.
|
overridevirtual |
Reimplemented from QAbstractItemViewPrivate.
Definition at line 1424 of file qtreeview.cpp.
|
inline |
Definition at line 230 of file qtreeview_p.h.
|
inline |
Definition at line 204 of file qtreeview_p.h.
|
inline |
Definition at line 219 of file qtreeview_p.h.
|
inline |
Definition at line 212 of file qtreeview_p.h.
|
inline |
Definition at line 74 of file qtreeview_p.h.
| int QTreeViewPrivate::itemAtCoordinate | ( | int | coordinate | ) | const |
Returns the index of the view item at the given viewport coordinate.
Definition at line 3659 of file qtreeview.cpp.
| int QTreeViewPrivate::itemDecorationAt | ( | const QPoint & | pos | ) | const |
Definition at line 3889 of file qtreeview.cpp.
| QRect QTreeViewPrivate::itemDecorationRect | ( | const QModelIndex & | index | ) | const |
Definition at line 3911 of file qtreeview.cpp.
| int QTreeViewPrivate::itemForKeyEnd | ( | ) | const |
Definition at line 3567 of file qtreeview.cpp.
| int QTreeViewPrivate::itemForKeyHome | ( | ) | const |
Definition at line 3559 of file qtreeview.cpp.
| int QTreeViewPrivate::itemHeight | ( | int | item | ) | const |
Definition at line 3585 of file qtreeview.cpp.
| int QTreeViewPrivate::lastVisibleItem | ( | int | firstVisual = -1, |
| int | offset = -1 ) const |
Definition at line 3792 of file qtreeview.cpp.
| void QTreeViewPrivate::layout | ( | int | i, |
| ExpandItems | recursiveExpanding, | ||
| InitializeNewItems | initializeNewItems ) |
creates and initialize the viewItem structure of the children of the element
set recursiveExpanding if the function has to expand all the children (called from expandAll) initializeNewItems is when we recurse from layout(-1), it means all the items after 'i' are not yet initialized and need not to be moved
Definition at line 3417 of file qtreeview.cpp.
| int QTreeViewPrivate::logicalIndexForTree | ( | ) | const |
Definition at line 1364 of file qtreeview.cpp.
| void QTreeViewPrivate::modelAboutToBeReset | ( | ) |
Definition at line 3376 of file qtreeview.cpp.
|
overridevirtual |
Reimplemented from QAbstractItemViewPrivate.
Definition at line 1416 of file qtreeview.cpp.
| QModelIndex QTreeViewPrivate::modelIndex | ( | int | i, |
| int | column = 0 ) const |
Definition at line 3752 of file qtreeview.cpp.
| int QTreeViewPrivate::pageDown | ( | int | item | ) | const |
Definition at line 3547 of file qtreeview.cpp.
| int QTreeViewPrivate::pageUp | ( | int | item | ) | const |
Definition at line 3535 of file qtreeview.cpp.
| void QTreeViewPrivate::paintAlternatingRowColors | ( | QPainter * | painter, |
| QStyleOptionViewItem * | option, | ||
| int | y, | ||
| int | bottom ) const |
Definition at line 1372 of file qtreeview.cpp.
| void QTreeViewPrivate::removeViewItems | ( | int | pos, |
| int | count ) |
Definition at line 3212 of file qtreeview.cpp.
| void QTreeViewPrivate::select | ( | const QModelIndex & | start, |
| const QModelIndex & | stop, | ||
| QItemSelectionModel::SelectionFlags | command ) |
Definition at line 3985 of file qtreeview.cpp.
| void QTreeViewPrivate::sortIndicatorChanged | ( | int | column, |
| Qt::SortOrder | order ) |
Definition at line 4081 of file qtreeview.cpp.
| std::pair< int, int > QTreeViewPrivate::startAndEndColumns | ( | const QRect & | rect | ) | const |
Definition at line 4045 of file qtreeview.cpp.
|
inline |
Definition at line 197 of file qtreeview_p.h.
| void QTreeViewPrivate::updateAccessibility | ( | ) |
Definition at line 3395 of file qtreeview.cpp.
| void QTreeViewPrivate::updateChildCount | ( | const int | parentItem, |
| const int | delta ) |
| void QTreeViewPrivate::updateIndentationFromStyle | ( | ) |
Definition at line 4111 of file qtreeview.cpp.
| void QTreeViewPrivate::updateScrollBars | ( | ) |
Definition at line 3815 of file qtreeview.cpp.
| int QTreeViewPrivate::viewIndex | ( | const QModelIndex & | index | ) | const |
Definition at line 3708 of file qtreeview.cpp.
|
inlineoverridevirtual |
Reimplemented from QAbstractItemViewPrivate.
Definition at line 167 of file qtreeview_p.h.
| QRect QTreeViewPrivate::visualRect | ( | const QModelIndex & | index, |
| RectRule | rule ) const |
| index,according | to |
| rule. | \list
|
Definition at line 1105 of file qtreeview.cpp.
| int QTreeViewPrivate::widthHintForIndex | ( | const QModelIndex & | index, |
| int | hint, | ||
| const QStyleOptionViewItem & | option, | ||
| int | i ) const |
Get sizeHint width for single index (providing existing hint and style option) and index in viewIndex i.
Definition at line 1672 of file qtreeview.cpp.
| bool QTreeViewPrivate::allColumnsShowFocus |
Definition at line 185 of file qtreeview_p.h.
| QMetaObject::Connection QTreeViewPrivate::animationConnection |
Definition at line 272 of file qtreeview_p.h.
| bool QTreeViewPrivate::animationsEnabled |
Definition at line 195 of file qtreeview_p.h.
| int QTreeViewPrivate::autoExpandDelay |
Definition at line 251 of file qtreeview_p.h.
| QBasicTimer QTreeViewPrivate::columnResizeTimer |
Definition at line 247 of file qtreeview_p.h.
| QList<int> QTreeViewPrivate::columnsToUpdate |
Definition at line 248 of file qtreeview_p.h.
|
mutable |
Definition at line 190 of file qtreeview_p.h.
| bool QTreeViewPrivate::customIndent |
Definition at line 186 of file qtreeview_p.h.
| int QTreeViewPrivate::defaultItemHeight |
Definition at line 179 of file qtreeview_p.h.
| QSet<QPersistentModelIndex> QTreeViewPrivate::expandedIndexes |
Definition at line 194 of file qtreeview_p.h.
| bool QTreeViewPrivate::expandsOnDoubleClick |
Definition at line 184 of file qtreeview_p.h.
| bool QTreeViewPrivate::geometryRecursionBlock |
Definition at line 258 of file qtreeview_p.h.
| bool QTreeViewPrivate::hasRemovedItems |
Definition at line 261 of file qtreeview_p.h.
| QHeaderView* QTreeViewPrivate::header |
Definition at line 174 of file qtreeview_p.h.
| std::array<QMetaObject::Connection, 5> QTreeViewPrivate::headerConnections |
Definition at line 275 of file qtreeview_p.h.
| QSet<QPersistentModelIndex> QTreeViewPrivate::hiddenIndexes |
Definition at line 210 of file qtreeview_p.h.
|
mutable |
Definition at line 255 of file qtreeview_p.h.
| int QTreeViewPrivate::indent |
Definition at line 175 of file qtreeview_p.h.
| bool QTreeViewPrivate::itemsExpandable |
Definition at line 182 of file qtreeview_p.h.
|
mutable |
Definition at line 178 of file qtreeview_p.h.
|
mutable |
Definition at line 189 of file qtreeview_p.h.
| std::array<QMetaObject::Connection, 2> QTreeViewPrivate::modelConnections |
Definition at line 274 of file qtreeview_p.h.
| QBasicTimer QTreeViewPrivate::openTimer |
Definition at line 252 of file qtreeview_p.h.
| bool QTreeViewPrivate::rootDecoration |
Definition at line 181 of file qtreeview_p.h.
| QMetaObject::Connection QTreeViewPrivate::selectionmodelConnection |
Definition at line 273 of file qtreeview_p.h.
| QMetaObject::Connection QTreeViewPrivate::sortHeaderConnection |
Definition at line 276 of file qtreeview_p.h.
| bool QTreeViewPrivate::sortingEnabled |
Definition at line 183 of file qtreeview_p.h.
|
mutable |
Definition at line 191 of file qtreeview_p.h.
| QSet<QPersistentModelIndex> QTreeViewPrivate::spanningIndexes |
Definition at line 244 of file qtreeview_p.h.
| int QTreeViewPrivate::treePosition |
Definition at line 264 of file qtreeview_p.h.
| bool QTreeViewPrivate::uniformRowHeights |
Definition at line 180 of file qtreeview_p.h.
|
mutable |
Definition at line 177 of file qtreeview_p.h.