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

#include <qabstractitemview_p.h>

+ Inheritance diagram for QAbstractItemViewPrivate:
+ Collaboration diagram for QAbstractItemViewPrivate:

Public Member Functions

 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 ()
 

Public Attributes

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 57 of file qabstractitemview_p.h.

Constructor & Destructor Documentation

◆ QAbstractItemViewPrivate()

QT_BEGIN_NAMESPACE QAbstractItemViewPrivate::QAbstractItemViewPrivate ( )

Definition at line 44 of file qabstractitemview.cpp.

References QElapsedTimer::invalidate(), and keyboardInputTime.

+ Here is the call graph for this function:

◆ ~QAbstractItemViewPrivate()

QAbstractItemViewPrivate::~QAbstractItemViewPrivate ( )
virtual

Definition at line 93 of file qabstractitemview.cpp.

Member Function Documentation

◆ _q_columnsAboutToBeRemoved()

void QAbstractItemViewPrivate::_q_columnsAboutToBeRemoved ( const QModelIndex parent,
int  start,
int  end 
)
virtual

This slot is called when columns are about to be removed. The deleted columns are those under the given parent from start to end inclusive.

Reimplemented in QTreeViewPrivate.

Definition at line 3550 of file qabstractitemview.cpp.

References QHash< Key, T >::begin(), QAbstractItemView::CollapsingState, QModelIndex::column(), QAbstractItemModel::columnCount(), editor(), editorIndexHash, QHash< Key, T >::end(), QHash< Key, T >::erase(), QAbstractItemModel::index(), indexEditorHash, info, isIndexEnabled(), QModelIndex::isValid(), it, QHash< QWidget *, QPersistentModelIndex >::iterator, model, next, QModelIndex::parent(), QAbstractItemModel::parent, parent, qWarning, releaseEditor(), QModelIndex::row(), selectionMode, QAbstractItemView::SingleSelection, and QHash< Key, T >::take().

Referenced by QTreeViewPrivate::_q_columnsAboutToBeRemoved().

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

◆ _q_columnsInserted()

void QAbstractItemViewPrivate::_q_columnsInserted ( const QModelIndex index,
int  start,
int  end 
)
virtual

This slot is called when columns have been inserted.

Reimplemented in QColumnViewPrivate.

Definition at line 3663 of file qabstractitemview.cpp.

References Q_UNUSED, and updateGeometry().

+ Here is the call graph for this function:

◆ _q_columnsMoved()

void QAbstractItemViewPrivate::_q_columnsMoved ( const QModelIndex source,
int  sourceStart,
int  sourceEnd,
const QModelIndex destination,
int  destinationStart 
)
virtual

Definition at line 3714 of file qabstractitemview.cpp.

References _q_layoutChanged().

+ Here is the call graph for this function:

◆ _q_columnsRemoved()

void QAbstractItemViewPrivate::_q_columnsRemoved ( const QModelIndex index,
int  start,
int  end 
)
virtual

This slot is called when columns have been removed. The deleted rows are those under the given parent from start to end inclusive.

Reimplemented in QTreeViewPrivate.

Definition at line 3613 of file qabstractitemview.cpp.

References QAbstractItemView::NoState, Q_UNUSED, and updateGeometry().

Referenced by QTreeViewPrivate::_q_columnsRemoved().

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

◆ _q_delegateSizeHintChanged()

void QAbstractItemViewPrivate::_q_delegateSizeHintChanged ( const QModelIndex index)

Definition at line 211 of file qabstractitemview.cpp.

References QAbstractItemModel::checkIndex(), QAbstractItemView::doItemsLayout(), QMetaObject::invokeMethod(), model, Qt::QueuedConnection, and qWarning.

+ Here is the call graph for this function:

◆ _q_headerDataChanged()

void QAbstractItemViewPrivate::_q_headerDataChanged ( )
inline

Definition at line 78 of file qabstractitemview_p.h.

◆ _q_layoutChanged()

void QAbstractItemViewPrivate::_q_layoutChanged ( )
virtual

This slot is called when the layout is changed.

Definition at line 3697 of file qabstractitemview.cpp.

References doDelayedItemsLayout().

Referenced by _q_columnsMoved(), and _q_rowsMoved().

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

◆ _q_modelDestroyed()

void QAbstractItemViewPrivate::_q_modelDestroyed ( )
virtual

Reimplemented in QTreeViewPrivate.

Definition at line 3686 of file qabstractitemview.cpp.

References doDelayedReset(), model, and QAbstractItemModelPrivate::staticEmptyModel().

Referenced by QTreeViewPrivate::_q_modelDestroyed().

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

◆ _q_rowsInserted()

void QAbstractItemViewPrivate::_q_rowsInserted ( const QModelIndex index,
int  start,
int  end 
)
virtual

This slot is called when rows have been inserted.

Definition at line 3640 of file qabstractitemview.cpp.

References Q_UNUSED, and updateGeometry().

+ Here is the call graph for this function:

◆ _q_rowsMoved()

void QAbstractItemViewPrivate::_q_rowsMoved ( const QModelIndex source,
int  sourceStart,
int  sourceEnd,
const QModelIndex destination,
int  destinationStart 
)
virtual

Definition at line 3709 of file qabstractitemview.cpp.

References _q_layoutChanged().

+ Here is the call graph for this function:

◆ _q_rowsRemoved()

void QAbstractItemViewPrivate::_q_rowsRemoved ( const QModelIndex index,
int  start,
int  end 
)
virtual

This slot is called when rows have been removed. The deleted rows are those under the given parent from start to end inclusive.

Definition at line 3522 of file qabstractitemview.cpp.

References QAbstractItemView::NoState, Q_UNUSED, and updateGeometry().

+ Here is the call graph for this function:

◆ _q_scrollerStateChanged()

void QAbstractItemViewPrivate::_q_scrollerStateChanged ( )

◆ addEditor()

void QAbstractItemViewPrivate::addEditor ( const QModelIndex index,
QWidget editor,
bool  isStatic 
)

Definition at line 4570 of file qabstractitemview.cpp.

References editor(), editorIndexHash, indexEditorHash, and QHash< Key, T >::insert().

Referenced by editor().

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

◆ adjustViewOptionsForIndex()

virtual void QAbstractItemViewPrivate::adjustViewOptionsForIndex ( QStyleOptionViewItem *  ,
const QModelIndex  
) const
inlinevirtual

Reimplemented in QTreeViewPrivate.

Definition at line 177 of file qabstractitemview_p.h.

Referenced by renderToPixmap().

+ Here is the caller graph for this function:

◆ checkMouseMove() [1/2]

void QAbstractItemViewPrivate::checkMouseMove ( const QPersistentModelIndex index)

Definition at line 140 of file qabstractitemview.cpp.

References QAbstractItemModel::data(), emit, enteredIndex, QString::isEmpty(), model, parent, QCoreApplication::sendEvent(), setHoverIndex(), shouldClearStatusTip, Qt::StatusTipRole, QVariant::toString(), and viewportEnteredNeeded.

+ Here is the call graph for this function:

◆ checkMouseMove() [2/2]

void QAbstractItemViewPrivate::checkMouseMove ( const QPoint pos)
inline

Definition at line 122 of file qabstractitemview_p.h.

References checkMouseMove(), and pos.

Referenced by checkMouseMove().

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

◆ checkPersistentEditorFocus()

void QAbstractItemViewPrivate::checkPersistentEditorFocus ( )

When persistent aeditor gets/loses focus, we need to check and setcorrectly the current index.

Definition at line 4513 of file qabstractitemview.cpp.

References QSet< T >::contains(), QItemSelectionModel::currentIndex, QApplication::focusWidget(), indexForEditor(), persistent, selectionModel, and widget.

+ Here is the call graph for this function:

◆ clearOrRemove()

void QAbstractItemViewPrivate::clearOrRemove ( )

In DND if something has been moved then this is called. Typically this means you should "remove" the selected item or row, but the behavior is view-dependent (table just clears the selected indexes for example).

Either remove the selected rows or clear them

Definition at line 4477 of file qabstractitemview.cpp.

References QList< T >::at(), QMap< Key, T >::begin(), QAbstractItemModel::columnCount(), QList< T >::constBegin(), QList< T >::constEnd(), QMap< Key, T >::end(), i, QItemSelection::indexes(), it, QAbstractItemModel::itemData(), list, model, parent, selection, QItemSelectionModel::selection, selectionModel, QAbstractItemModel::setItemData(), and QList< T >::size().

+ Here is the call graph for this function:

◆ contentsOffset()

QPoint QAbstractItemViewPrivate::contentsOffset ( ) const
inlineoverride

Definition at line 271 of file qabstractitemview_p.h.

◆ contiguousSelectionCommand()

QItemSelectionModel::SelectionFlags QAbstractItemViewPrivate::contiguousSelectionCommand ( const QModelIndex index,
const QEvent event 
) const

◆ delegateRefCount()

int QAbstractItemViewPrivate::delegateRefCount ( const QAbstractItemDelegate delegate) const
inline

For now, assume that we have few editors, if we need a more efficient implementation we should add a QMap<QAbstractItemDelegate*, int> member.

Definition at line 280 of file qabstractitemview_p.h.

References QMap< Key, T >::begin(), QMap< Key, T >::end(), and it.

+ Here is the call graph for this function:

◆ doDelayedItemsLayout()

void QAbstractItemViewPrivate::doDelayedItemsLayout ( int  delay = 0)

Definition at line 4369 of file qabstractitemview.cpp.

References delayedPendingLayout, and QBasicTimer::start().

Referenced by QTreeViewPrivate::_q_columnsRemoved(), _q_layoutChanged(), and QListModeViewBase::dataChanged().

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

◆ doDelayedReset()

void QAbstractItemViewPrivate::doDelayedReset ( )
inline

Definition at line 315 of file qabstractitemview_p.h.

Referenced by _q_modelDestroyed().

+ Here is the caller graph for this function:

◆ draggablePaintPairs()

QItemViewPaintPairs QAbstractItemViewPrivate::draggablePaintPairs ( const QModelIndexList indexes,
QRect r 
) const
virtual

Reimplemented in QListViewPrivate, and QTreeViewPrivate.

Definition at line 4621 of file qabstractitemview.cpp.

References QRect::intersects(), QRect::left(), Q_ASSERT, rect, ret, QRect::right(), and viewport().

Referenced by QTreeViewPrivate::draggablePaintPairs(), and renderToPixmap().

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

◆ droppingOnItself()

bool QAbstractItemViewPrivate::droppingOnItself ( QDropEvent *  event,
const QModelIndex index 
)

◆ editor()

QWidget * QAbstractItemViewPrivate::editor ( const QModelIndex index,
const QStyleOptionViewItem &  options 
)

Definition at line 4414 of file qabstractitemview.cpp.

References addEditor(), QObject::connect(), QAbstractItemDelegate::createEditor(), QPointer< T >::data(), editorForIndex(), QObject::installEventFilter(), selectAllInEditor(), QAbstractItemDelegate::setEditorData(), QWidget::setTabOrder(), SIGNAL, SLOT, QAbstractItemDelegate::updateEditorGeometry(), viewport(), and QEditorInfo::widget.

Referenced by _q_columnsAboutToBeRemoved(), addEditor(), QTableViewPrivate::heightHintForIndex(), indexForEditor(), openEditor(), removeEditor(), selectAllInEditor(), updateEditorData(), QTableViewPrivate::widthHintForIndex(), and QTreeViewPrivate::widthHintForIndex().

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

◆ editorForIndex()

const QEditorInfo & QAbstractItemViewPrivate::editorForIndex ( const QModelIndex index) const

Definition at line 4527 of file qabstractitemview.cpp.

References QHash< QPersistentModelIndex, QEditorInfo >::const_iterator, QHash< Key, T >::end(), QHash< Key, T >::find(), indexEditorHash, QHash< Key, T >::isEmpty(), and it.

Referenced by editor(), QTableViewPrivate::heightHintForIndex(), QTableViewPrivate::widthHintForIndex(), and QTreeViewPrivate::widthHintForIndex().

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

◆ executePostedLayout()

void QAbstractItemViewPrivate::executePostedLayout ( ) const
inline

◆ extendedSelectionCommand()

QItemSelectionModel::SelectionFlags QAbstractItemViewPrivate::extendedSelectionCommand ( const QModelIndex index,
const QEvent event 
) const

◆ fetchMore()

void QAbstractItemViewPrivate::fetchMore ( )

Definition at line 4301 of file qabstractitemview.cpp.

References QAbstractItemModel::canFetchMore(), QAbstractItemModel::fetchMore(), QAbstractItemModel::index(), model, rect, root, QAbstractItemModel::rowCount(), QBasicTimer::stop(), and viewport().

+ Here is the call graph for this function:

◆ hasEditor()

bool QAbstractItemViewPrivate::hasEditor ( const QModelIndex index) const

Definition at line 4542 of file qabstractitemview.cpp.

References QHash< Key, T >::contains(), indexEditorHash, and QHash< Key, T >::isEmpty().

Referenced by shouldEdit().

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

◆ indexForEditor()

QModelIndex QAbstractItemViewPrivate::indexForEditor ( QWidget editor) const

Definition at line 4548 of file qabstractitemview.cpp.

References QHash< QWidget *, QPersistentModelIndex >::const_iterator, editor(), editorIndexHash, QHash< Key, T >::end(), QHash< Key, T >::find(), indexEditorHash, QHash< Key, T >::isEmpty(), and it.

Referenced by checkPersistentEditorFocus().

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

◆ init()

void QAbstractItemViewPrivate::init ( )

Definition at line 97 of file qabstractitemview.cpp.

References QPalette::Base, QObject::connect(), horizontalScrollMode, QStyle::SH_ItemView_ScrollMode, SIGNAL, SLOT, verticalScrollMode, viewport(), and Qt::WA_InputMethodEnabled.

+ Here is the call graph for this function:

◆ interruptDelayedItemsLayout()

void QAbstractItemViewPrivate::interruptDelayedItemsLayout ( ) const

Definition at line 4377 of file qabstractitemview.cpp.

References delayedPendingLayout, and QBasicTimer::stop().

+ Here is the call graph for this function:

◆ intersectedRect()

QRect QAbstractItemViewPrivate::intersectedRect ( const QRect  rect,
const QModelIndex topLeft,
const QModelIndex bottomRight 
) const
virtual

Reimplemented in QTableViewPrivate, and QTreeViewPrivate.

Definition at line 3719 of file qabstractitemview.cpp.

References QModelIndex::column(), QAbstractItemModel::index(), model, QModelIndex::parent(), rect, and QModelIndex::row().

+ Here is the call graph for this function:

◆ isAnimating()

bool QAbstractItemViewPrivate::isAnimating ( ) const
inline

Definition at line 243 of file qabstractitemview_p.h.

References QAbstractItemView::AnimatingState, and state.

Referenced by QTreeViewPrivate::expandOrCollapseItemAtPos().

+ Here is the caller graph for this function:

◆ isIndexEnabled()

bool QAbstractItemViewPrivate::isIndexEnabled ( const QModelIndex index) const
inline

Definition at line 253 of file qabstractitemview_p.h.

References QAbstractTableModel::flags(), Qt::ItemIsEnabled, and model.

Referenced by _q_columnsAboutToBeRemoved(), QListViewPrivate::isHiddenOrDisabled(), QTreeViewPrivate::isItemHiddenOrDisabled(), and QListViewPrivate::removeCurrentAndDisabled().

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

◆ isIndexSelectable()

bool QAbstractItemViewPrivate::isIndexSelectable ( const QModelIndex index) const
inline

Definition at line 250 of file qabstractitemview_p.h.

References QAbstractTableModel::flags(), Qt::ItemIsSelectable, and model.

+ Here is the call graph for this function:

◆ isIndexValid()

bool QAbstractItemViewPrivate::isIndexValid ( const QModelIndex index) const
inline

Definition at line 247 of file qabstractitemview_p.h.

References model.

Referenced by QListViewPrivate::hasRectForIndex().

+ Here is the caller graph for this function:

◆ isPersistent()

bool QAbstractItemViewPrivate::isPersistent ( const QModelIndex index) const
inline

return true if the index is registered as a QPersistentModelIndex

Definition at line 305 of file qabstractitemview_p.h.

References QObject::d_ptr, QScopedPointer< T, Cleanup >::data(), and model.

Referenced by QTreeViewPrivate::collapse(), QListViewPrivate::isHidden(), QTreeViewPrivate::isIndexExpanded(), and QTreeViewPrivate::isRowHidden().

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

◆ multiSelectionCommand()

QItemSelectionModel::SelectionFlags QAbstractItemViewPrivate::multiSelectionCommand ( const QModelIndex index,
const QEvent event 
) const

Definition at line 4122 of file qabstractitemview.cpp.

References button, Qt::Key_Select, Qt::Key_Space, QEvent::KeyPress, Qt::LeftButton, QEvent::MouseButtonPress, QEvent::MouseButtonRelease, QEvent::MouseMove, QItemSelectionModel::NoUpdate, pressedAlreadySelected, pressedIndex, Q_UNUSED, QT_CONFIG, selectionBehaviorFlags(), QItemSelectionModel::Toggle, and QItemSelectionModel::ToggleCurrent.

+ Here is the call graph for this function:

◆ offset()

QPoint QAbstractItemViewPrivate::offset ( ) const
inline

Definition at line 230 of file qabstractitemview_p.h.

Referenced by QTreeViewPrivate::lastVisibleItem(), and QCommonListViewBase::offset().

+ Here is the caller graph for this function:

◆ openEditor()

bool QAbstractItemViewPrivate::openEditor ( const QModelIndex index,
QEvent event 
)

Definition at line 4588 of file qabstractitemview.cpp.

References QAbstractItemModel::buddy(), QAbstractItemView::EditingState, editor(), model, QCoreApplication::sendEvent(), QStyle::State_HasFocus, QStyle::State_None, and waitForIMCommit.

+ Here is the call graph for this function:

◆ releaseEditor()

void QAbstractItemViewPrivate::releaseEditor ( QWidget editor,
const QModelIndex index = QModelIndex() 
) const
inline

Definition at line 179 of file qabstractitemview_p.h.

References QAbstractItemDelegate::destroyEditor(), QObject::disconnect(), SIGNAL, and SLOT.

Referenced by _q_columnsAboutToBeRemoved().

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

◆ removeEditor()

void QAbstractItemViewPrivate::removeEditor ( QWidget editor)

Definition at line 4561 of file qabstractitemview.cpp.

References QHash< Key, T >::cend(), QHash< Key, T >::constFind(), editor(), editorIndexHash, QHash< Key, T >::erase(), indexEditorHash, it, and QHash< Key, T >::remove().

+ Here is the call graph for this function:

◆ renderToPixmap()

QPixmap QAbstractItemViewPrivate::renderToPixmap ( const QModelIndexList indexes,
QRect r 
) const

Definition at line 4641 of file qabstractitemview.cpp.

References adjustViewOptionsForIndex(), QList< T >::at(), draggablePaintPairs(), QList< T >::isEmpty(), j, painter, pixmap, Q_ASSERT, QList< T >::size(), QStyle::State_Selected, Qt::transparent, and window().

+ Here is the call graph for this function:

◆ scrollContentsBy()

void QAbstractItemViewPrivate::scrollContentsBy ( int  dx,
int  dy 
)
inline

Definition at line 214 of file qabstractitemview_p.h.

References viewport().

Referenced by QCommonListViewBase::scrollContentsBy().

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

◆ scrollDirtyRegion()

void QAbstractItemViewPrivate::scrollDirtyRegion ( int  dx,
int  dy 
)
inline

Definition at line 208 of file qabstractitemview_p.h.

◆ selectAll()

void QAbstractItemViewPrivate::selectAll ( QItemSelectionModel::SelectionFlags  command)
virtual

Reimplemented in QListViewPrivate.

Definition at line 4669 of file qabstractitemview.cpp.

References QList< T >::append(), QAbstractItemModel::columnCount(), QAbstractItemModel::hasChildren(), QAbstractItemModel::index(), model, root, QAbstractItemModel::rowCount(), QItemSelectionModel::select(), selection, and selectionModel.

Referenced by QTableViewPrivate::init().

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

◆ selectAllInEditor()

void QAbstractItemViewPrivate::selectAllInEditor ( QWidget w)

Definition at line 4397 of file qabstractitemview.cpp.

References editor(), QWidget::focusProxy(), fp, and le.

Referenced by editor().

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

◆ selectionAllowed()

virtual bool QAbstractItemViewPrivate::selectionAllowed ( const QModelIndex index) const
inlinevirtual

Reimplemented in QListViewPrivate.

Definition at line 265 of file qabstractitemview_p.h.

◆ selectionBehaviorFlags()

QItemSelectionModel::SelectionFlags QAbstractItemViewPrivate::selectionBehaviorFlags ( ) const
inline

Definition at line 124 of file qabstractitemview_p.h.

References QItemSelectionModel::Columns, QItemSelectionModel::NoUpdate, QItemSelectionModel::Rows, QAbstractItemView::SelectColumns, QAbstractItemView::SelectItems, and QAbstractItemView::SelectRows.

Referenced by contiguousSelectionCommand(), extendedSelectionCommand(), and multiSelectionCommand().

+ Here is the caller graph for this function:

◆ sendDelegateEvent()

bool QAbstractItemViewPrivate::sendDelegateEvent ( const QModelIndex index,
QEvent event 
) const

Definition at line 4576 of file qabstractitemview.cpp.

References QAbstractItemModel::buddy(), QAbstractItemDelegate::editorEvent(), model, QStyle::State_HasFocus, and QStyle::State_None.

+ Here is the call graph for this function:

◆ setDirtyRegion()

void QAbstractItemViewPrivate::setDirtyRegion ( const QRegion visualRegion)
inline

Definition at line 202 of file qabstractitemview_p.h.

◆ setHoverIndex()

void QAbstractItemViewPrivate::setHoverIndex ( const QPersistentModelIndex index)

Definition at line 122 of file qabstractitemview.cpp.

References QRect::height(), hover, selectionBehavior, QAbstractItemView::SelectRows, viewport(), and QRect::y().

Referenced by checkMouseMove().

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

◆ shouldAutoScroll()

bool QAbstractItemViewPrivate::shouldAutoScroll ( const QPoint pos) const

Definition at line 4358 of file qabstractitemview.cpp.

References area(), autoScroll, autoScrollMargin, pos, and viewport().

+ Here is the call graph for this function:

◆ shouldEdit()

bool QAbstractItemViewPrivate::shouldEdit ( QAbstractItemView::EditTrigger  trigger,
const QModelIndex index 
) const

Definition at line 4318 of file qabstractitemview.cpp.

References QAbstractItemView::AllEditTriggers, QAbstractItemView::EditingState, editTriggers, QAbstractItemModel::flags(), hasEditor(), QItemSelectionModel::isSelected(), Qt::ItemIsEditable, Qt::ItemIsEnabled, model, QAbstractItemView::SelectedClicked, selectionModel, and state.

+ Here is the call graph for this function:

◆ shouldForwardEvent()

bool QAbstractItemViewPrivate::shouldForwardEvent ( QAbstractItemView::EditTrigger  trigger,
const QEvent event 
) const

◆ startAutoScroll()

void QAbstractItemViewPrivate::startAutoScroll ( )
inline

Definition at line 92 of file qabstractitemview_p.h.

References QAbstractItemView::ScrollPerItem.

◆ stopAutoScroll()

void QAbstractItemViewPrivate::stopAutoScroll ( )
inline

Definition at line 98 of file qabstractitemview_p.h.

◆ updateDirtyRegion()

void QAbstractItemViewPrivate::updateDirtyRegion ( )
inline

Definition at line 219 of file qabstractitemview_p.h.

References viewport().

+ Here is the call graph for this function:

◆ updateEditorData()

void QAbstractItemViewPrivate::updateEditorData ( const QModelIndex topLeft,
const QModelIndex bottomRight 
)

Definition at line 4440 of file qabstractitemview.cpp.

References QModelIndex::column(), QHash< QPersistentModelIndex, QEditorInfo >::const_iterator, QHash< Key, T >::constBegin(), QHash< Key, T >::constEnd(), editor(), indexEditorHash, QModelIndex::isValid(), it, QModelIndex::parent(), parent, QModelIndex::row(), and QAbstractItemDelegate::setEditorData().

+ Here is the call graph for this function:

◆ updateGeometry()

void QAbstractItemViewPrivate::updateGeometry ( )

Definition at line 4383 of file qabstractitemview.cpp.

Referenced by _q_columnsInserted(), _q_columnsRemoved(), _q_rowsInserted(), and _q_rowsRemoved().

+ Here is the caller graph for this function:

Member Data Documentation

◆ alternatingColors

bool QAbstractItemViewPrivate::alternatingColors

◆ autoScroll

bool QAbstractItemViewPrivate::autoScroll

Definition at line 381 of file qabstractitemview_p.h.

Referenced by shouldAutoScroll().

◆ autoScrollCount

int QAbstractItemViewPrivate::autoScrollCount

Definition at line 384 of file qabstractitemview_p.h.

◆ autoScrollMargin

int QAbstractItemViewPrivate::autoScrollMargin

Definition at line 383 of file qabstractitemview_p.h.

Referenced by shouldAutoScroll().

◆ autoScrollTimer

QBasicTimer QAbstractItemViewPrivate::autoScrollTimer

Definition at line 382 of file qabstractitemview_p.h.

◆ columnDelegates

QMap<int, QPointer<QAbstractItemDelegate> > QAbstractItemViewPrivate::columnDelegates

Definition at line 327 of file qabstractitemview_p.h.

◆ ctrlDragSelectionFlag

QItemSelectionModel::SelectionFlag QAbstractItemViewPrivate::ctrlDragSelectionFlag

◆ currentIndexSet

bool QAbstractItemViewPrivate::currentIndexSet

Definition at line 410 of file qabstractitemview_p.h.

◆ currentlyCommittingEditor

QWidget* QAbstractItemViewPrivate::currentlyCommittingEditor

Definition at line 338 of file qabstractitemview_p.h.

◆ currentSelectionStartIndex

QPersistentModelIndex QAbstractItemViewPrivate::currentSelectionStartIndex

◆ delayedAutoScroll

QBasicTimer QAbstractItemViewPrivate::delayedAutoScroll

Definition at line 398 of file qabstractitemview_p.h.

Referenced by QTreeViewPrivate::collapse().

◆ delayedEditing

QBasicTimer QAbstractItemViewPrivate::delayedEditing

Definition at line 397 of file qabstractitemview_p.h.

◆ delayedPendingLayout

bool QAbstractItemViewPrivate::delayedPendingLayout
mutable

Definition at line 413 of file qabstractitemview_p.h.

Referenced by doDelayedItemsLayout(), and interruptDelayedItemsLayout().

◆ delayedReset

QBasicTimer QAbstractItemViewPrivate::delayedReset

Definition at line 399 of file qabstractitemview_p.h.

◆ draggedPosition

QPoint QAbstractItemViewPrivate::draggedPosition

Definition at line 349 of file qabstractitemview_p.h.

◆ editorIndexHash

QEditorIndexHash QAbstractItemViewPrivate::editorIndexHash

◆ editTriggers

QAbstractItemView::EditTriggers QAbstractItemViewPrivate::editTriggers

Definition at line 359 of file qabstractitemview_p.h.

Referenced by QTableViewPrivate::init(), shouldEdit(), and shouldForwardEvent().

◆ enteredIndex

QPersistentModelIndex QAbstractItemViewPrivate::enteredIndex

Definition at line 344 of file qabstractitemview_p.h.

Referenced by checkMouseMove().

◆ horizontalScrollMode

QAbstractItemView::ScrollMode QAbstractItemViewPrivate::horizontalScrollMode

Definition at line 402 of file qabstractitemview_p.h.

Referenced by init(), and QTreeViewPrivate::updateScrollBars().

◆ horizontalScrollModeSet

bool QAbstractItemViewPrivate::horizontalScrollModeSet

Definition at line 418 of file qabstractitemview_p.h.

◆ hover

QPersistentModelIndex QAbstractItemViewPrivate::hover

Definition at line 363 of file qabstractitemview_p.h.

Referenced by QTableViewPrivate::drawCell(), and setHoverIndex().

◆ iconSize

QSize QAbstractItemViewPrivate::iconSize

Definition at line 390 of file qabstractitemview_p.h.

◆ indexEditorHash

QIndexEditorHash QAbstractItemViewPrivate::indexEditorHash

◆ itemDelegate

QPointer<QAbstractItemDelegate> QAbstractItemViewPrivate::itemDelegate

Definition at line 325 of file qabstractitemview_p.h.

Referenced by QTreeViewPrivate::paintAlternatingRowColors().

◆ keyboardInput

QString QAbstractItemViewPrivate::keyboardInput

Definition at line 378 of file qabstractitemview_p.h.

◆ keyboardInputTime

QElapsedTimer QAbstractItemViewPrivate::keyboardInputTime

Definition at line 379 of file qabstractitemview_p.h.

Referenced by QAbstractItemViewPrivate().

◆ lastEditedIndex

QPersistentModelIndex QAbstractItemViewPrivate::lastEditedIndex

Definition at line 340 of file qabstractitemview_p.h.

◆ lastTrigger

QAbstractItemView::EditTrigger QAbstractItemViewPrivate::lastTrigger

Definition at line 360 of file qabstractitemview_p.h.

◆ model

◆ moveCursorUpdatedView

bool QAbstractItemViewPrivate::moveCursorUpdatedView

Definition at line 414 of file qabstractitemview_p.h.

◆ noSelectionOnMousePress

bool QAbstractItemViewPrivate::noSelectionOnMousePress

Definition at line 330 of file qabstractitemview_p.h.

◆ oldCurrent

QModelIndex QAbstractItemViewPrivate::oldCurrent

Definition at line 407 of file qabstractitemview_p.h.

Referenced by QListWidget::isPersistentEditorOpen().

◆ oldSelection

QItemSelection QAbstractItemViewPrivate::oldSelection

Definition at line 406 of file qabstractitemview_p.h.

Referenced by QListWidget::isPersistentEditorOpen().

◆ persistent

◆ pressClosedEditor

bool QAbstractItemViewPrivate::pressClosedEditor

Definition at line 341 of file qabstractitemview_p.h.

◆ pressClosedEditorWatcher

QBasicTimer QAbstractItemViewPrivate::pressClosedEditorWatcher

Definition at line 339 of file qabstractitemview_p.h.

◆ pressedAlreadySelected

bool QAbstractItemViewPrivate::pressedAlreadySelected

Definition at line 350 of file qabstractitemview_p.h.

Referenced by extendedSelectionCommand(), and multiSelectionCommand().

◆ pressedIndex

QPersistentModelIndex QAbstractItemViewPrivate::pressedIndex

Definition at line 345 of file qabstractitemview_p.h.

Referenced by extendedSelectionCommand(), and multiSelectionCommand().

◆ pressedModifiers

Qt::KeyboardModifiers QAbstractItemViewPrivate::pressedModifiers

Definition at line 347 of file qabstractitemview_p.h.

◆ pressedPosition

QPoint QAbstractItemViewPrivate::pressedPosition

Definition at line 348 of file qabstractitemview_p.h.

Referenced by QCommonListViewBase::pressedPosition().

◆ releaseFromDoubleClick

bool QAbstractItemViewPrivate::releaseFromDoubleClick

Definition at line 351 of file qabstractitemview_p.h.

◆ root

◆ rowDelegates

QMap<int, QPointer<QAbstractItemDelegate> > QAbstractItemViewPrivate::rowDelegates

Definition at line 326 of file qabstractitemview_p.h.

◆ scrollDelayOffset

QPoint QAbstractItemViewPrivate::scrollDelayOffset

Definition at line 394 of file qabstractitemview_p.h.

Referenced by QTableViewPrivate::drawAndClipSpans().

◆ selectionBehavior

QAbstractItemView::SelectionBehavior QAbstractItemViewPrivate::selectionBehavior

◆ selectionMode

QAbstractItemView::SelectionMode QAbstractItemViewPrivate::selectionMode

Definition at line 332 of file qabstractitemview_p.h.

Referenced by _q_columnsAboutToBeRemoved().

◆ selectionModel

◆ shouldClearStatusTip

bool QAbstractItemViewPrivate::shouldClearStatusTip

Definition at line 386 of file qabstractitemview_p.h.

Referenced by checkMouseMove().

◆ shouldScrollToCurrentOnShow

bool QAbstractItemViewPrivate::shouldScrollToCurrentOnShow

Definition at line 385 of file qabstractitemview_p.h.

◆ state

◆ stateBeforeAnimation

QAbstractItemView::State QAbstractItemViewPrivate::stateBeforeAnimation

Definition at line 358 of file qabstractitemview_p.h.

Referenced by QTreeViewPrivate::collapse(), and QTreeViewPrivate::expand().

◆ tabKeyNavigation

bool QAbstractItemViewPrivate::tabKeyNavigation

Definition at line 365 of file qabstractitemview_p.h.

Referenced by QTableViewPrivate::init().

◆ textElideMode

Qt::TextElideMode QAbstractItemViewPrivate::textElideMode

Definition at line 391 of file qabstractitemview_p.h.

◆ updateRegion

QRegion QAbstractItemViewPrivate::updateRegion

Definition at line 393 of file qabstractitemview_p.h.

◆ updateTimer

QBasicTimer QAbstractItemViewPrivate::updateTimer

Definition at line 396 of file qabstractitemview_p.h.

◆ verticalScrollMode

◆ verticalScrollModeSet

bool QAbstractItemViewPrivate::verticalScrollModeSet

Definition at line 417 of file qabstractitemview_p.h.

◆ viewportEnteredNeeded

bool QAbstractItemViewPrivate::viewportEnteredNeeded

Definition at line 355 of file qabstractitemview_p.h.

Referenced by checkMouseMove().

◆ waitForIMCommit

bool QAbstractItemViewPrivate::waitForIMCommit

Definition at line 342 of file qabstractitemview_p.h.

Referenced by openEditor().

◆ wrapItemText

bool QAbstractItemViewPrivate::wrapItemText

Definition at line 412 of file qabstractitemview_p.h.

Referenced by QTableViewPrivate::heightHintForIndex().


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