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

#include <qtablewidget_p.h>

+ Inheritance diagram for QTableWidgetPrivate:
+ Collaboration diagram for QTableWidgetPrivate:

Public Member Functions

 QTableWidgetPrivate ()
 
QTableModeltableModel () const
 
void setup ()
 
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_emitCurrentItemChanged (const QModelIndex &previous, const QModelIndex &current)
 
void _q_sort ()
 
void _q_dataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight)
 
- Public Member Functions inherited from QTableViewPrivate
 QTableViewPrivate ()
 
void init ()
 
void trimHiddenSelections (QItemSelectionRange *range) const
 
QRect intersectedRect (const QRect rect, const QModelIndex &topLeft, const QModelIndex &bottomRight) const override
 
bool isHidden (int row, int col) const
 
int visualRow (int logicalRow) const
 
int visualColumn (int logicalCol) const
 
int logicalRow (int visualRow) const
 
int logicalColumn (int visualCol) const
 
int accessibleTable2Index (const QModelIndex &index) const
 
int sectionSpanEndLogical (const QHeaderView *header, int logical, int span) const
 
int sectionSpanSize (const QHeaderView *header, int logical, int span) const
 
bool spanContainsSection (const QHeaderView *header, int logical, int spanLogical, int span) const
 
void drawAndClipSpans (const QRegion &area, QPainter *painter, const QStyleOptionViewItem &option, QBitArray *drawn, int firstVisualRow, int lastVisualRow, int firstVisualColumn, int lastVisualColumn)
 
void drawCell (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index)
 
int widthHintForIndex (const QModelIndex &index, int hint, const QStyleOptionViewItem &option) const
 
int heightHintForIndex (const QModelIndex &index, int hint, QStyleOptionViewItem &option) const
 
void setSpan (int row, int column, int rowSpan, int columnSpan)
 
QSpanCollection::Span span (int row, int column) const
 
int rowSpan (int row, int column) const
 
int columnSpan (int row, int column) const
 
bool hasSpans () const
 
int rowSpanHeight (int row, int span) const
 
int columnSpanWidth (int column, int span) const
 
int rowSpanEndLogical (int row, int span) const
 
int columnSpanEndLogical (int column, int span) const
 
bool isRowHidden (int row) const
 
bool isColumnHidden (int column) const
 
bool isCellEnabled (int row, int column) const
 
int nextActiveVisualRow (int rowToStart, int column, int limit, SearchDirection searchDirection) const
 
int nextActiveVisualColumn (int row, int columnToStart, int limit, SearchDirection searchDirection) const
 
QRect visualSpanRect (const QSpanCollection::Span &span) const
 
void _q_selectRow (int row)
 
void _q_selectColumn (int column)
 
void selectRow (int row, bool anchor)
 
void selectColumn (int column, bool anchor)
 
void _q_updateSpanInsertedRows (const QModelIndex &parent, int start, int end)
 
void _q_updateSpanInsertedColumns (const QModelIndex &parent, int start, int end)
 
void _q_updateSpanRemovedRows (const QModelIndex &parent, int start, int end)
 
void _q_updateSpanRemovedColumns (const QModelIndex &parent, int start, int end)
 
void _q_sortIndicatorChanged (int column, Qt::SortOrder order)
 
- 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 ()
 

Additional Inherited Members

- Public Types inherited from QTableViewPrivate
enum class  SearchDirection { Increasing , Decreasing }
 
- Public Attributes inherited from QTableViewPrivate
bool showGrid
 
Qt::PenStyle gridStyle
 
int columnResizeTimerID
 
int rowResizeTimerID
 
QList< int > columnsToUpdate
 
QList< int > rowsToUpdate
 
QHeaderViewhorizontalHeader
 
QHeaderViewverticalHeader
 
bool sortingEnabled
 
bool geometryRecursionBlock
 
QPoint visualCursor
 
QSpanCollection spans
 
- 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
 

Detailed Description

Definition at line 146 of file qtablewidget_p.h.

Constructor & Destructor Documentation

◆ QTableWidgetPrivate()

QTableWidgetPrivate::QTableWidgetPrivate ( )
inline

Definition at line 150 of file qtablewidget_p.h.

Member Function Documentation

◆ _q_dataChanged()

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

Definition at line 1684 of file qtablewidget.cpp.

References QModelIndex::column(), QTableModel::ensureSorted(), QTableViewPrivate::horizontalHeader, QModelIndex::isValid(), QModelIndex::row(), QHeaderView::sortIndicatorOrder(), QHeaderView::sortIndicatorSection(), QTableViewPrivate::sortingEnabled, and tableModel().

Referenced by setup().

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

◆ _q_emitCurrentItemChanged()

void QTableWidgetPrivate::_q_emitCurrentItemChanged ( const QModelIndex previous,
const QModelIndex current 
)

Definition at line 1664 of file qtablewidget.cpp.

References QModelIndex::column(), emit, QTableModel::item(), QModelIndex::row(), and tableModel().

Referenced by setup().

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

◆ _q_emitItemActivated()

void QTableWidgetPrivate::_q_emitItemActivated ( const QModelIndex index)

Definition at line 1640 of file qtablewidget.cpp.

References emit, item, and tableModel().

Referenced by setup().

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

◆ _q_emitItemChanged()

void QTableWidgetPrivate::_q_emitItemChanged ( const QModelIndex index)

Definition at line 1656 of file qtablewidget.cpp.

References emit, item, and tableModel().

Referenced by setup().

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

◆ _q_emitItemClicked()

void QTableWidgetPrivate::_q_emitItemClicked ( const QModelIndex index)

Definition at line 1624 of file qtablewidget.cpp.

References emit, item, and tableModel().

Referenced by setup().

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

◆ _q_emitItemDoubleClicked()

void QTableWidgetPrivate::_q_emitItemDoubleClicked ( const QModelIndex index)

Definition at line 1632 of file qtablewidget.cpp.

References emit, item, and tableModel().

Referenced by setup().

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

◆ _q_emitItemEntered()

void QTableWidgetPrivate::_q_emitItemEntered ( const QModelIndex index)

Definition at line 1648 of file qtablewidget.cpp.

References emit, item, and tableModel().

Referenced by setup().

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

◆ _q_emitItemPressed()

void QTableWidgetPrivate::_q_emitItemPressed ( const QModelIndex index)

Definition at line 1616 of file qtablewidget.cpp.

References emit, item, and tableModel().

Referenced by setup().

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

◆ _q_sort()

void QTableWidgetPrivate::_q_sort ( )

Definition at line 1675 of file qtablewidget.cpp.

References QTableViewPrivate::horizontalHeader, QAbstractItemViewPrivate::model, QHeaderView::sortIndicatorOrder(), QHeaderView::sortIndicatorSection(), and QTableViewPrivate::sortingEnabled.

Referenced by setup().

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

◆ setup()

void QTableWidgetPrivate::setup ( )

Definition at line 1592 of file qtablewidget.cpp.

References _q_dataChanged(), _q_emitCurrentItemChanged(), _q_emitItemActivated(), _q_emitItemChanged(), _q_emitItemClicked(), _q_emitItemDoubleClicked(), _q_emitItemEntered(), _q_emitItemPressed(), _q_sort(), QObject::connect(), QAbstractItemViewPrivate::model, SIGNAL, and SLOT.

+ Here is the call graph for this function:

◆ tableModel()

QTableModel * QTableWidgetPrivate::tableModel ( ) const
inline

Definition at line 151 of file qtablewidget_p.h.

References QAbstractItemViewPrivate::model.

Referenced by _q_dataChanged(), _q_emitCurrentItemChanged(), _q_emitItemActivated(), _q_emitItemChanged(), _q_emitItemClicked(), _q_emitItemDoubleClicked(), _q_emitItemEntered(), and _q_emitItemPressed().

+ Here is the caller graph for this function:

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