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
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
QStyleOptionViewItem::ViewItemPosition viewItemPosition (const QModelIndex &index) 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
std::optional< Qt::DropActions > supportedDragActions
Public Attributes inherited from QTableViewPrivate
bool showGrid
Qt::PenStyle gridStyle
QBasicTimer columnResizeTimer
QBasicTimer rowResizeTimer
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
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

Additional Inherited Members

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

Detailed Description

Definition at line 154 of file qtablewidget_p.h.

Constructor & Destructor Documentation

◆ QTableWidgetPrivate()

QTableWidgetPrivate::QTableWidgetPrivate ( )
inline

Definition at line 158 of file qtablewidget_p.h.

Member Function Documentation

◆ clearConnections()

void QTableWidgetPrivate::clearConnections ( )

Definition at line 1645 of file qtablewidget.cpp.

◆ dataChanged()

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

Definition at line 1719 of file qtablewidget.cpp.

◆ emitCurrentItemChanged()

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

Definition at line 1699 of file qtablewidget.cpp.

◆ emitItemActivated()

void QTableWidgetPrivate::emitItemActivated ( const QModelIndex & index)

Definition at line 1675 of file qtablewidget.cpp.

◆ emitItemChanged()

void QTableWidgetPrivate::emitItemChanged ( const QModelIndex & index)

Definition at line 1691 of file qtablewidget.cpp.

◆ emitItemClicked()

void QTableWidgetPrivate::emitItemClicked ( const QModelIndex & index)

Definition at line 1659 of file qtablewidget.cpp.

◆ emitItemDoubleClicked()

void QTableWidgetPrivate::emitItemDoubleClicked ( const QModelIndex & index)

Definition at line 1667 of file qtablewidget.cpp.

◆ emitItemEntered()

void QTableWidgetPrivate::emitItemEntered ( const QModelIndex & index)

Definition at line 1683 of file qtablewidget.cpp.

◆ emitItemPressed()

void QTableWidgetPrivate::emitItemPressed ( const QModelIndex & index)

Definition at line 1651 of file qtablewidget.cpp.

◆ setup()

void QTableWidgetPrivate::setup ( )

Definition at line 1614 of file qtablewidget.cpp.

◆ sort()

void QTableWidgetPrivate::sort ( )

Definition at line 1710 of file qtablewidget.cpp.

◆ tableModel()

QTableModel * QTableWidgetPrivate::tableModel ( ) const
inline

Definition at line 159 of file qtablewidget_p.h.

Member Data Documentation

◆ connections

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

Definition at line 177 of file qtablewidget_p.h.

◆ supportedDragActions

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

Definition at line 178 of file qtablewidget_p.h.


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