Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QTreeWidgetPrivate Class Reference

#include <qtreewidget_p.h>

+ Inheritance diagram for QTreeWidgetPrivate:
+ Collaboration diagram for QTreeWidgetPrivate:

Public Member Functions

 QTreeWidgetPrivate ()
 
QTreeModeltreeModel () const
 
QModelIndex index (const QTreeWidgetItem *item, int column=0) const
 
QTreeWidgetItemitem (const QModelIndex &index) const
 
void _q_emitItemPressed (const QModelIndex &index)
 
void _q_emitItemClicked (const QModelIndex &index)
 
void _q_emitItemDoubleClicked (const QModelIndex &index)
 
void _q_emitItemActivated (const QModelIndex &index)
 
void _q_emitItemEntered (const QModelIndex &index)
 
void _q_emitItemChanged (const QModelIndex &index)
 
void _q_emitItemExpanded (const QModelIndex &index)
 
void _q_emitItemCollapsed (const QModelIndex &index)
 
void _q_emitCurrentItemChanged (const QModelIndex &previous, const QModelIndex &index)
 
void _q_sort ()
 
void _q_dataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight)
 
void _q_selectionChanged (const QItemSelection &selected, const QItemSelection &deselected)
 
- Public Member Functions inherited from QTreeViewPrivate
 QTreeViewPrivate ()
 
 ~QTreeViewPrivate ()
 
void initialize ()
 
int logicalIndexForTree () const
 
bool isTreePosition (int logicalIndex) const
 
QItemViewPaintPairs draggablePaintPairs (const QModelIndexList &indexes, QRect *r) const override
 \reimp
 
void adjustViewOptionsForIndex (QStyleOptionViewItem *option, const QModelIndex &current) const override
 
void expand (int item, bool emitSignal)
 
void collapse (int item, bool emitSignal)
 
void _q_columnsAboutToBeRemoved (const QModelIndex &, int, int) override
 
void _q_columnsRemoved (const QModelIndex &, int, int) override
 
void _q_modelAboutToBeReset ()
 
void _q_sortIndicatorChanged (int column, Qt::SortOrder order)
 
void _q_modelDestroyed () override
 
QRect intersectedRect (const QRect rect, const QModelIndex &topLeft, const QModelIndex &bottomRight) const override
 
void layout (int item, bool recusiveExpanding=false, bool afterIsUninitialized=false)
 
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 &index) const
 
QModelIndex modelIndex (int i, int column=0) const
 
void insertViewItems (int pos, int count, const QTreeViewItem &viewItem)
 
void removeViewItems (int pos, int count)
 
int firstVisibleItem (int *offset=nullptr) const
 
int lastVisibleItem (int firstVisual=-1, int offset=-1) const
 
int columnAt (int x) const
 
bool hasVisibleChildren (const QModelIndex &parent) const
 
bool expandOrCollapseItemAtPos (const QPoint &pos)
 
void updateScrollBars ()
 
int itemDecorationAt (const QPoint &pos) const
 
QRect itemDecorationRect (const QModelIndex &index) const
 
QList< QPair< int, int > > columnRanges (const QModelIndex &topIndex, const QModelIndex &bottomIndex) const
 
void select (const QModelIndex &start, const QModelIndex &stop, QItemSelectionModel::SelectionFlags command)
 
QPair< int, int > startAndEndColumns (const QRect &rect) const
 
void updateChildCount (const int parentItem, const int delta)
 
void paintAlternatingRowColors (QPainter *painter, QStyleOptionViewItem *option, int y, int bottom) const
 
void calcLogicalIndices (QList< int > *logicalIndices, QList< QStyleOptionViewItem::ViewItemPosition > *itemPositions, int left, int right) const
 
int widthHintForIndex (const QModelIndex &index, int hint, const QStyleOptionViewItem &option, int i) 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 &index) const
 
int accessibleTree2Index (const QModelIndex &index) const
 
void updateIndentationFromStyle ()
 
- Public Member Functions inherited from QAbstractItemViewPrivate
 QAbstractItemViewPrivate ()
 
virtual ~QAbstractItemViewPrivate ()
 
void init ()
 
virtual void _q_rowsRemoved (const QModelIndex &parent, int start, int end)
 
virtual void _q_rowsInserted (const QModelIndex &parent, int start, int end)
 
virtual void _q_columnsAboutToBeRemoved (const QModelIndex &parent, int start, int end)
 
virtual void _q_columnsRemoved (const QModelIndex &parent, int start, int end)
 
virtual void _q_columnsInserted (const QModelIndex &parent, int start, int end)
 
virtual void _q_modelDestroyed ()
 
virtual void _q_layoutChanged ()
 
virtual void _q_rowsMoved (const QModelIndex &source, int sourceStart, int sourceEnd, const QModelIndex &destination, int destinationStart)
 
virtual void _q_columnsMoved (const QModelIndex &source, int sourceStart, int sourceEnd, const QModelIndex &destination, int destinationStart)
 
virtual QRect intersectedRect (const QRect rect, const QModelIndex &topLeft, const QModelIndex &bottomRight) const
 
void _q_headerDataChanged ()
 
void _q_scrollerStateChanged ()
 
void _q_delegateSizeHintChanged (const QModelIndex &index)
 
void fetchMore ()
 
bool shouldEdit (QAbstractItemView::EditTrigger trigger, const QModelIndex &index) const
 
bool shouldForwardEvent (QAbstractItemView::EditTrigger trigger, const QEvent *event) const
 
bool shouldAutoScroll (const QPoint &pos) const
 
void doDelayedItemsLayout (int delay=0)
 
void interruptDelayedItemsLayout () const
 
void updateGeometry ()
 
void startAutoScroll ()
 
void stopAutoScroll ()
 
bool droppingOnItself (QDropEvent *event, const QModelIndex &index)
 
QWidgeteditor (const QModelIndex &index, const QStyleOptionViewItem &options)
 
bool sendDelegateEvent (const QModelIndex &index, QEvent *event) const
 
bool openEditor (const QModelIndex &index, QEvent *event)
 
void updateEditorData (const QModelIndex &topLeft, const QModelIndex &bottomRight)
 
void selectAllInEditor (QWidget *w)
 
QItemSelectionModel::SelectionFlags multiSelectionCommand (const QModelIndex &index, const QEvent *event) const
 
QItemSelectionModel::SelectionFlags extendedSelectionCommand (const QModelIndex &index, const QEvent *event) const
 
QItemSelectionModel::SelectionFlags contiguousSelectionCommand (const QModelIndex &index, const QEvent *event) const
 
virtual void selectAll (QItemSelectionModel::SelectionFlags command)
 
void setHoverIndex (const QPersistentModelIndex &index)
 
void checkMouseMove (const QPersistentModelIndex &index)
 
void checkMouseMove (const QPoint &pos)
 
QItemSelectionModel::SelectionFlags selectionBehaviorFlags () const
 
virtual QItemViewPaintPairs draggablePaintPairs (const QModelIndexList &indexes, QRect *r) const
 
virtual void adjustViewOptionsForIndex (QStyleOptionViewItem *, const QModelIndex &) const
 
void releaseEditor (QWidget *editor, const QModelIndex &index=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 *r) const
 
QPoint offset () const
 
const QEditorInfoeditorForIndex (const QModelIndex &index) const
 
bool hasEditor (const QModelIndex &index) const
 
QModelIndex indexForEditor (QWidget *editor) const
 
void addEditor (const QModelIndex &index, QWidget *editor, bool isStatic)
 
void removeEditor (QWidget *editor)
 
bool isAnimating () const
 
bool isIndexValid (const QModelIndex &index) const
 
bool isIndexSelectable (const QModelIndex &index) const
 
bool isIndexEnabled (const QModelIndex &index) const
 
virtual bool selectionAllowed (const QModelIndex &index) const
 
QPoint contentsOffset () const override
 
int delegateRefCount (const QAbstractItemDelegate *delegate) const
 
bool isPersistent (const QModelIndex &index) const
 
void doDelayedReset ()
 

Public Attributes

int explicitSortColumn
 
- Public Attributes inherited from QTreeViewPrivate
QHeaderViewheader
 
int indent
 
QList< QTreeViewItemviewItems
 
int lastViewedItem
 
int defaultItemHeight
 
bool uniformRowHeights
 
bool rootDecoration
 
bool itemsExpandable
 
bool sortingEnabled
 
bool expandsOnDoubleClick
 
bool allColumnsShowFocus
 
bool customIndent
 
QPair< int, int > leftAndRight
 
int current
 
bool spanning
 
QSet< QPersistentModelIndexexpandedIndexes
 
bool animationsEnabled
 
QSet< QPersistentModelIndexhiddenIndexes
 
QSet< QPersistentModelIndexspanningIndexes
 
int columnResizeTimerID
 
QList< int > columnsToUpdate
 
int autoExpandDelay
 
QBasicTimer openTimer
 
int hoverBranch
 
bool geometryRecursionBlock
 
bool hasRemovedItems
 
int treePosition
 
- Public Attributes inherited from QAbstractItemViewPrivate
QAbstractItemModelmodel
 
QPointer< QAbstractItemDelegateitemDelegate
 
QMap< int, QPointer< QAbstractItemDelegate > > rowDelegates
 
QMap< int, QPointer< QAbstractItemDelegate > > columnDelegates
 
QPointer< QItemSelectionModelselectionModel
 
QItemSelectionModel::SelectionFlag ctrlDragSelectionFlag
 
bool noSelectionOnMousePress
 
QAbstractItemView::SelectionMode selectionMode
 
QAbstractItemView::SelectionBehavior selectionBehavior
 
QEditorIndexHash editorIndexHash
 
QIndexEditorHash indexEditorHash
 
QSet< QWidget * > persistent
 
QWidgetcurrentlyCommittingEditor
 
QBasicTimer pressClosedEditorWatcher
 
QPersistentModelIndex lastEditedIndex
 
bool pressClosedEditor
 
bool waitForIMCommit
 
QPersistentModelIndex enteredIndex
 
QPersistentModelIndex pressedIndex
 
QPersistentModelIndex currentSelectionStartIndex
 
Qt::KeyboardModifiers pressedModifiers
 
QPoint pressedPosition
 
QPoint draggedPosition
 
bool pressedAlreadySelected
 
bool releaseFromDoubleClick
 
bool viewportEnteredNeeded
 
QAbstractItemView::State state
 
QAbstractItemView::State stateBeforeAnimation
 
QAbstractItemView::EditTriggers editTriggers
 
QAbstractItemView::EditTrigger lastTrigger
 
QPersistentModelIndex root
 
QPersistentModelIndex hover
 
bool tabKeyNavigation
 
QString keyboardInput
 
QElapsedTimer keyboardInputTime
 
bool autoScroll
 
QBasicTimer autoScrollTimer
 
int autoScrollMargin
 
int autoScrollCount
 
bool shouldScrollToCurrentOnShow
 
bool shouldClearStatusTip
 
bool alternatingColors
 
QSize iconSize
 
Qt::TextElideMode textElideMode
 
QRegion updateRegion
 
QPoint scrollDelayOffset
 
QBasicTimer updateTimer
 
QBasicTimer delayedEditing
 
QBasicTimer delayedAutoScroll
 
QBasicTimer delayedReset
 
QAbstractItemView::ScrollMode verticalScrollMode
 
QAbstractItemView::ScrollMode horizontalScrollMode
 
QItemSelection oldSelection
 
QModelIndex oldCurrent
 
bool currentIndexSet
 
bool wrapItemText
 
bool delayedPendingLayout
 
bool moveCursorUpdatedView
 
bool verticalScrollModeSet
 
bool horizontalScrollModeSet
 

Friends

class QTreeModel
 

Detailed Description

Definition at line 183 of file qtreewidget_p.h.

Constructor & Destructor Documentation

◆ QTreeWidgetPrivate()

QTreeWidgetPrivate::QTreeWidgetPrivate ( )
inline

Definition at line 188 of file qtreewidget_p.h.

Member Function Documentation

◆ _q_dataChanged()

void QTreeWidgetPrivate::_q_dataChanged ( const QModelIndex topLeft,
const QModelIndex bottomRight 
)

Definition at line 2392 of file qtreewidget.cpp.

References QModelIndex::column(), QTreeModel::ensureSorted(), QTreeViewPrivate::header, QModelIndex::isValid(), QModelIndex::parent(), QModelIndex::row(), QHeaderView::sortIndicatorOrder(), QHeaderView::sortIndicatorSection(), QTreeViewPrivate::sortingEnabled, and treeModel().

+ Here is the call graph for this function:

◆ _q_emitCurrentItemChanged()

void QTreeWidgetPrivate::_q_emitCurrentItemChanged ( const QModelIndex previous,
const QModelIndex index 
)

Definition at line 2354 of file qtreewidget.cpp.

References QTreeViewPrivate::current, emit, and item.

◆ _q_emitItemActivated()

void QTreeWidgetPrivate::_q_emitItemActivated ( const QModelIndex index)

Definition at line 2322 of file qtreewidget.cpp.

References emit, and item.

◆ _q_emitItemChanged()

void QTreeWidgetPrivate::_q_emitItemChanged ( const QModelIndex index)

Definition at line 2334 of file qtreewidget.cpp.

References emit, and item.

◆ _q_emitItemClicked()

void QTreeWidgetPrivate::_q_emitItemClicked ( const QModelIndex index)

Definition at line 2310 of file qtreewidget.cpp.

References emit, and item.

◆ _q_emitItemCollapsed()

void QTreeWidgetPrivate::_q_emitItemCollapsed ( const QModelIndex index)

Definition at line 2348 of file qtreewidget.cpp.

References emit, and item.

◆ _q_emitItemDoubleClicked()

void QTreeWidgetPrivate::_q_emitItemDoubleClicked ( const QModelIndex index)

Definition at line 2316 of file qtreewidget.cpp.

References emit, and item.

◆ _q_emitItemEntered()

void QTreeWidgetPrivate::_q_emitItemEntered ( const QModelIndex index)

Definition at line 2328 of file qtreewidget.cpp.

References emit, and item.

◆ _q_emitItemExpanded()

void QTreeWidgetPrivate::_q_emitItemExpanded ( const QModelIndex index)

Definition at line 2342 of file qtreewidget.cpp.

References emit, and item.

◆ _q_emitItemPressed()

void QTreeWidgetPrivate::_q_emitItemPressed ( const QModelIndex index)

Definition at line 2304 of file qtreewidget.cpp.

References emit, and item.

◆ _q_selectionChanged()

void QTreeWidgetPrivate::_q_selectionChanged ( const QItemSelection selected,
const QItemSelection deselected 
)

Definition at line 2372 of file qtreewidget.cpp.

References emit, i, QItemSelection::indexes(), item, and treeModel().

+ Here is the call graph for this function:

◆ _q_sort()

void QTreeWidgetPrivate::_q_sort ( )

Definition at line 2363 of file qtreewidget.cpp.

References QTreeViewPrivate::header, QTreeModel::sort(), QHeaderView::sortIndicatorOrder(), QHeaderView::sortIndicatorSection(), QTreeViewPrivate::sortingEnabled, and treeModel().

+ Here is the call graph for this function:

◆ index()

QModelIndex QTreeWidgetPrivate::index ( const QTreeWidgetItem item,
int  column = 0 
) const
inline

Definition at line 190 of file qtreewidget_p.h.

References QTreeModel::index(), item, and treeModel().

+ Here is the call graph for this function:

◆ item()

QTreeWidgetItem * QTreeWidgetPrivate::item ( const QModelIndex index) const
inline

Definition at line 192 of file qtreewidget_p.h.

References QTreeModel::item(), and treeModel().

+ Here is the call graph for this function:

◆ treeModel()

QTreeModel * QTreeWidgetPrivate::treeModel ( ) const
inline

Definition at line 189 of file qtreewidget_p.h.

References QAbstractItemViewPrivate::model.

Referenced by _q_dataChanged(), _q_selectionChanged(), _q_sort(), index(), and item().

+ Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ QTreeModel

friend class QTreeModel
friend

Definition at line 185 of file qtreewidget_p.h.

Member Data Documentation

◆ explicitSortColumn

int QTreeWidgetPrivate::explicitSortColumn

Definition at line 208 of file qtreewidget_p.h.


The documentation for this class was generated from the following files: