Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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< std::pair< int, int > > columnRanges (const QModelIndex &topIndex, const QModelIndex &bottomIndex) const
void select (const QModelIndex &start, 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 *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
std::optional< Qt::DropActions > supportedDragActions
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
std::pair< int, int > leftAndRight
int current
bool spanning
QSet< QPersistentModelIndexexpandedIndexes
bool animationsEnabled
QSet< QPersistentModelIndexhiddenIndexes
QSet< QPersistentModelIndexspanningIndexes
QBasicTimer columnResizeTimer
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
QPoint draggedPositionOffset
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
int updateThreshold
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 186 of file qtreewidget_p.h.

Constructor & Destructor Documentation

◆ QTreeWidgetPrivate()

QTreeWidgetPrivate::QTreeWidgetPrivate ( )
inline

Definition at line 191 of file qtreewidget_p.h.

Member Function Documentation

◆ clearConnections()

void QTreeWidgetPrivate::clearConnections ( )

Definition at line 2287 of file qtreewidget.cpp.

◆ dataChanged()

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

Definition at line 2381 of file qtreewidget.cpp.

◆ emitCurrentItemChanged()

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

Definition at line 2343 of file qtreewidget.cpp.

◆ emitItemActivated()

void QTreeWidgetPrivate::emitItemActivated ( const QModelIndex & index)

Definition at line 2311 of file qtreewidget.cpp.

◆ emitItemChanged()

void QTreeWidgetPrivate::emitItemChanged ( const QModelIndex & index)

Definition at line 2323 of file qtreewidget.cpp.

◆ emitItemClicked()

void QTreeWidgetPrivate::emitItemClicked ( const QModelIndex & index)

Definition at line 2299 of file qtreewidget.cpp.

◆ emitItemCollapsed()

void QTreeWidgetPrivate::emitItemCollapsed ( const QModelIndex & index)

Definition at line 2337 of file qtreewidget.cpp.

◆ emitItemDoubleClicked()

void QTreeWidgetPrivate::emitItemDoubleClicked ( const QModelIndex & index)

Definition at line 2305 of file qtreewidget.cpp.

◆ emitItemEntered()

void QTreeWidgetPrivate::emitItemEntered ( const QModelIndex & index)

Definition at line 2317 of file qtreewidget.cpp.

◆ emitItemExpanded()

void QTreeWidgetPrivate::emitItemExpanded ( const QModelIndex & index)

Definition at line 2331 of file qtreewidget.cpp.

◆ emitItemPressed()

void QTreeWidgetPrivate::emitItemPressed ( const QModelIndex & index)

Definition at line 2293 of file qtreewidget.cpp.

◆ index()

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

Definition at line 194 of file qtreewidget_p.h.

References treeModel().

Here is the call graph for this function:

◆ item()

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

Definition at line 196 of file qtreewidget_p.h.

References treeModel().

Here is the call graph for this function:

◆ selectionChanged()

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

Definition at line 2361 of file qtreewidget.cpp.

◆ sort()

void QTreeWidgetPrivate::sort ( )

Definition at line 2352 of file qtreewidget.cpp.

◆ treeModel()

QTreeModel * QTreeWidgetPrivate::treeModel ( ) const
inline

Definition at line 193 of file qtreewidget_p.h.

Referenced by index(), and item().

Here is the caller graph for this function:

◆ QTreeModel

friend class QTreeModel
friend

Definition at line 188 of file qtreewidget_p.h.

Member Data Documentation

◆ connections

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

Definition at line 214 of file qtreewidget_p.h.

◆ explicitSortColumn

int QTreeWidgetPrivate::explicitSortColumn

Definition at line 212 of file qtreewidget_p.h.

◆ supportedDragActions

std::optional<Qt::DropActions> QTreeWidgetPrivate::supportedDragActions

Definition at line 215 of file qtreewidget_p.h.


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