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
QTableWidgetPrivate Class Reference

#include <qtablewidget_p.h>

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

Public Member Functions

 QTableWidgetPrivate ()
 
QTableModeltableModel () const
 
void setup ()
 
void clearConnections ()
 
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 emitCurrentItemChanged (const QModelIndex &previous, const QModelIndex &current)
 
void sort ()
 
void dataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight)
 
- Public Member Functions inherited from QTableViewPrivate
 QTableViewPrivate ()
 
void init ()
 
void clearConnections ()
 
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 selectRow (int row, bool anchor)
 
void selectColumn (int column, bool anchor)
 
void updateSpanInsertedRows (const QModelIndex &parent, int start, int end)
 
void updateSpanInsertedColumns (const QModelIndex &parent, int start, int end)
 
void updateSpanRemovedRows (const QModelIndex &parent, int start, int end)
 
void updateSpanRemovedColumns (const QModelIndex &parent, int start, int end)
 
void sortIndicatorChanged (int column, Qt::SortOrder order)
 
- 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 columnsAboutToBeRemoved (const QModelIndex &parent, int start, int end)
 
virtual void columnsRemoved (const QModelIndex &parent, int start, int end)
 
virtual void columnsInserted (const QModelIndex &parent, int start, int end)
 
virtual void modelDestroyed ()
 
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
 
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 ()
 
virtual QRect visualRect (const QModelIndex &index) const
 

Public Attributes

std::array< QMetaObject::Connection, 10 > connections
 
- Public Attributes inherited from QTableViewPrivate
bool showGrid
 
Qt::PenStyle gridStyle
 
int columnResizeTimerID
 
int rowResizeTimerID
 
QList< int > columnsToUpdate
 
QList< int > rowsToUpdate
 
QHeaderViewhorizontalHeader
 
QHeaderViewverticalHeader
 
QMetaObject::Connection selectionmodelConnection
 
std::array< QMetaObject::Connection, 4 > modelConnections
 
std::array< QMetaObject::Connection, 7 > verHeaderConnections
 
std::array< QMetaObject::Connection, 5 > horHeaderConnections
 
std::vector< QMetaObject::ConnectiondynHorHeaderConnections
 
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
 
std::array< QMetaObject::Connection, 14 > modelConnections
 
std::array< QMetaObject::Connection, 4 > scrollbarConnections
 

Additional Inherited Members

- Public Types inherited from QTableViewPrivate
enum class  SearchDirection { Increasing , Decreasing }
 

Detailed Description

Definition at line 148 of file qtablewidget_p.h.

Constructor & Destructor Documentation

◆ QTableWidgetPrivate()

QTableWidgetPrivate::QTableWidgetPrivate ( )
inline

Definition at line 152 of file qtablewidget_p.h.

Member Function Documentation

◆ clearConnections()

void QTableWidgetPrivate::clearConnections ( )

Definition at line 1622 of file qtablewidget.cpp.

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

+ Here is the call graph for this function:

◆ dataChanged()

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

Definition at line 1696 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:

◆ emitCurrentItemChanged()

void QTableWidgetPrivate::emitCurrentItemChanged ( const QModelIndex & previous,
const QModelIndex & current )

Definition at line 1676 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:

◆ emitItemActivated()

void QTableWidgetPrivate::emitItemActivated ( const QModelIndex & index)

Definition at line 1652 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:

◆ emitItemChanged()

void QTableWidgetPrivate::emitItemChanged ( const QModelIndex & index)

Definition at line 1668 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:

◆ emitItemClicked()

void QTableWidgetPrivate::emitItemClicked ( const QModelIndex & index)

Definition at line 1636 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:

◆ emitItemDoubleClicked()

void QTableWidgetPrivate::emitItemDoubleClicked ( const QModelIndex & index)

Definition at line 1644 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:

◆ emitItemEntered()

void QTableWidgetPrivate::emitItemEntered ( const QModelIndex & index)

Definition at line 1660 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:

◆ emitItemPressed()

void QTableWidgetPrivate::emitItemPressed ( const QModelIndex & index)

Definition at line 1628 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:

◆ setup()

◆ sort()

void QTableWidgetPrivate::sort ( )

Definition at line 1687 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:

◆ tableModel()

QTableModel * QTableWidgetPrivate::tableModel ( ) const
inline

Definition at line 153 of file qtablewidget_p.h.

References QAbstractItemViewPrivate::model.

Referenced by dataChanged(), emitCurrentItemChanged(), emitItemActivated(), emitItemChanged(), emitItemClicked(), emitItemDoubleClicked(), emitItemEntered(), and emitItemPressed().

+ Here is the caller graph for this function:

Member Data Documentation

◆ connections

std::array<QMetaObject::Connection, 10> QTableWidgetPrivate::connections

Definition at line 171 of file qtablewidget_p.h.

Referenced by clearConnections(), and setup().


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