Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QTreeWidgetPrivate Class Reference

#include <qtreewidget_p.h>

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

Public Member Functions

 QTreeWidgetPrivate ()
 
void clearConnections ()
 
QTreeModeltreeModel () const
 
QModelIndex index (const QTreeWidgetItem *item, int column=0) const
 
QTreeWidgetItemitem (const QModelIndex &index) const
 
void emitItemPressed (const QModelIndex &index)
 
void emitItemClicked (const QModelIndex &index)
 
void emitItemDoubleClicked (const QModelIndex &index)
 
void emitItemActivated (const QModelIndex &index)
 
void emitItemEntered (const QModelIndex &index)
 
void emitItemChanged (const QModelIndex &index)
 
void emitItemExpanded (const QModelIndex &index)
 
void emitItemCollapsed (const QModelIndex &index)
 
void emitCurrentItemChanged (const QModelIndex &previous, const QModelIndex &index)
 
void sort ()
 
void dataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight)
 
void selectionChanged (const QItemSelection &selected, const QItemSelection &deselected)
 
- Public Member Functions inherited from QTreeViewPrivate
 QTreeViewPrivate ()
 
 ~QTreeViewPrivate ()
 
void initialize ()
 
void clearConnections ()
 
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 columnsAboutToBeRemoved (const QModelIndex &, int, int) override
 
void columnsRemoved (const QModelIndex &, int, int) override
 
void modelAboutToBeReset ()
 
void sortIndicatorChanged (int column, Qt::SortOrder order)
 
void 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
 
QRect visualRect (const QModelIndex &index) const override
 
QRect visualRect (const QModelIndex &index, 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 &index) const
 
int accessibleTree2Index (const QModelIndex &index) const
 
void updateIndentationFromStyle ()
 
void updateAccessibility ()
 
- Public Member Functions inherited from QAbstractItemViewPrivate
 QAbstractItemViewPrivate ()
 
virtual ~QAbstractItemViewPrivate ()
 
void init ()
 
virtual void rowsRemoved (const QModelIndex &parent, int start, int end)
 
virtual void rowsInserted (const QModelIndex &parent, int start, int end)
 
virtual void columnsInserted (const QModelIndex &parent, int start, int end)
 
virtual void layoutChanged ()
 
virtual void rowsMoved (const QModelIndex &source, int sourceStart, int sourceEnd, const QModelIndex &destination, int destinationStart)
 
virtual void columnsMoved (const QModelIndex &source, int sourceStart, int sourceEnd, const QModelIndex &destination, int destinationStart)
 
void headerDataChanged ()
 
void scrollerStateChanged ()
 
void 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
 
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
 
std::array< QMetaObject::Connection, 12 > connections
 
- 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
 
QMetaObject::Connection animationConnection
 
QMetaObject::Connection selectionmodelConnection
 
std::array< QMetaObject::Connection, 2 > modelConnections
 
std::array< QMetaObject::Connection, 5 > headerConnections
 
QMetaObject::Connection sortHeaderConnection
 
- 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
 
std::array< QMetaObject::Connection, 14 > modelConnections
 
std::array< QMetaObject::Connection, 4 > scrollbarConnections
 

Friends

class QTreeModel
 

Additional Inherited Members

- Public Types inherited from QTreeViewPrivate
enum  RectRule { FullRow , SingleSection , AddRowIndicatorToFirstSection }
 

Detailed Description

Definition at line 185 of file qtreewidget_p.h.

Constructor & Destructor Documentation

◆ QTreeWidgetPrivate()

QTreeWidgetPrivate::QTreeWidgetPrivate ( )
inline

Definition at line 190 of file qtreewidget_p.h.

Member Function Documentation

◆ clearConnections()

void QTreeWidgetPrivate::clearConnections ( )

Definition at line 2303 of file qtreewidget.cpp.

References connection, connections, and QObject::disconnect().

+ Here is the call graph for this function:

◆ dataChanged()

void QTreeWidgetPrivate::dataChanged ( const QModelIndex & topLeft,
const QModelIndex & bottomRight )

Definition at line 2397 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().

Referenced by QTreeWidget::QTreeWidget().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ emitCurrentItemChanged()

void QTreeWidgetPrivate::emitCurrentItemChanged ( const QModelIndex & previous,
const QModelIndex & index )

Definition at line 2359 of file qtreewidget.cpp.

References QTreeViewPrivate::current, emit, and item.

Referenced by QTreeWidget::QTreeWidget().

+ Here is the caller graph for this function:

◆ emitItemActivated()

void QTreeWidgetPrivate::emitItemActivated ( const QModelIndex & index)

Definition at line 2327 of file qtreewidget.cpp.

References emit, and item.

Referenced by QTreeWidget::QTreeWidget().

+ Here is the caller graph for this function:

◆ emitItemChanged()

void QTreeWidgetPrivate::emitItemChanged ( const QModelIndex & index)

Definition at line 2339 of file qtreewidget.cpp.

References emit, and item.

Referenced by QTreeWidget::QTreeWidget().

+ Here is the caller graph for this function:

◆ emitItemClicked()

void QTreeWidgetPrivate::emitItemClicked ( const QModelIndex & index)

Definition at line 2315 of file qtreewidget.cpp.

References emit, and item.

Referenced by QTreeWidget::QTreeWidget().

+ Here is the caller graph for this function:

◆ emitItemCollapsed()

void QTreeWidgetPrivate::emitItemCollapsed ( const QModelIndex & index)

Definition at line 2353 of file qtreewidget.cpp.

References emit, and item.

Referenced by QTreeWidget::QTreeWidget().

+ Here is the caller graph for this function:

◆ emitItemDoubleClicked()

void QTreeWidgetPrivate::emitItemDoubleClicked ( const QModelIndex & index)

Definition at line 2321 of file qtreewidget.cpp.

References emit, and item.

Referenced by QTreeWidget::QTreeWidget().

+ Here is the caller graph for this function:

◆ emitItemEntered()

void QTreeWidgetPrivate::emitItemEntered ( const QModelIndex & index)

Definition at line 2333 of file qtreewidget.cpp.

References emit, and item.

Referenced by QTreeWidget::QTreeWidget().

+ Here is the caller graph for this function:

◆ emitItemExpanded()

void QTreeWidgetPrivate::emitItemExpanded ( const QModelIndex & index)

Definition at line 2347 of file qtreewidget.cpp.

References emit, and item.

Referenced by QTreeWidget::QTreeWidget().

+ Here is the caller graph for this function:

◆ emitItemPressed()

void QTreeWidgetPrivate::emitItemPressed ( const QModelIndex & index)

Definition at line 2309 of file qtreewidget.cpp.

References emit, and item.

Referenced by QTreeWidget::QTreeWidget().

+ Here is the caller graph for this function:

◆ index()

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

Definition at line 193 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 195 of file qtreewidget_p.h.

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

+ Here is the call graph for this function:

◆ selectionChanged()

void QTreeWidgetPrivate::selectionChanged ( const QItemSelection & selected,
const QItemSelection & deselected )

Definition at line 2377 of file qtreewidget.cpp.

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

Referenced by QTreeWidget::QTreeWidget().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ sort()

void QTreeWidgetPrivate::sort ( )

Definition at line 2368 of file qtreewidget.cpp.

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

Referenced by QTreeWidget::QTreeWidget().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ treeModel()

QTreeModel * QTreeWidgetPrivate::treeModel ( ) const
inline

Definition at line 192 of file qtreewidget_p.h.

References QAbstractItemViewPrivate::model.

Referenced by dataChanged(), index(), item(), selectionChanged(), and sort().

+ Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ QTreeModel

friend class QTreeModel
friend

Definition at line 187 of file qtreewidget_p.h.

Member Data Documentation

◆ connections

std::array<QMetaObject::Connection, 12> QTreeWidgetPrivate::connections

Definition at line 213 of file qtreewidget_p.h.

Referenced by clearConnections().

◆ explicitSortColumn

int QTreeWidgetPrivate::explicitSortColumn

Definition at line 211 of file qtreewidget_p.h.


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