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
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 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)
 
virtual QRect intersectedRect (const QRect rect, const QModelIndex &topLeft, const QModelIndex &bottomRight) const
 
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

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
 

Detailed Description

Definition at line 61 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

◆ addEditor()

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

Definition at line 4620 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 181 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 141 of file qabstractitemview.cpp.

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

+ Here is the call graph for this function:

◆ checkMouseMove() [2/2]

void QAbstractItemViewPrivate::checkMouseMove ( const QPoint & pos)
inline

Definition at line 126 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 4560 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 4524 of file qabstractitemview.cpp.

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

+ Here is the call graph for this function:

◆ columnsAboutToBeRemoved()

void QAbstractItemViewPrivate::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 3596 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, qWarning, releaseEditor(), QModelIndex::row(), selectionMode, QAbstractItemView::SingleSelection, and QHash< Key, T >::take().

Referenced by QTreeViewPrivate::columnsAboutToBeRemoved(), and QAbstractItemView::setModel().

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

◆ columnsInserted()

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

This slot is called when columns have been inserted.

Reimplemented in QColumnViewPrivate.

Definition at line 3709 of file qabstractitemview.cpp.

References Q_UNUSED, and updateGeometry().

Referenced by QAbstractItemView::setModel().

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

◆ columnsMoved()

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

Definition at line 3760 of file qabstractitemview.cpp.

References layoutChanged().

Referenced by QAbstractItemView::setModel().

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

◆ columnsRemoved()

void QAbstractItemViewPrivate::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 3659 of file qabstractitemview.cpp.

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

Referenced by QTreeViewPrivate::columnsRemoved(), and QAbstractItemView::setModel().

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

◆ contentsOffset()

QPoint QAbstractItemViewPrivate::contentsOffset ( ) const
inlineoverride

Definition at line 275 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 284 of file qabstractitemview_p.h.

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

+ Here is the call graph for this function:

◆ delegateSizeHintChanged()

void QAbstractItemViewPrivate::delegateSizeHintChanged ( const QModelIndex & index)

Definition at line 212 of file qabstractitemview.cpp.

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

+ Here is the call graph for this function:

◆ doDelayedItemsLayout()

void QAbstractItemViewPrivate::doDelayedItemsLayout ( int delay = 0)

Definition at line 4416 of file qabstractitemview.cpp.

References delayedPendingLayout, and QBasicTimer::start().

Referenced by QTreeViewPrivate::columnsRemoved(), QListModeViewBase::dataChanged(), and layoutChanged().

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

◆ doDelayedReset()

void QAbstractItemViewPrivate::doDelayedReset ( )
inline

Definition at line 319 of file qabstractitemview_p.h.

Referenced by 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 4671 of file qabstractitemview.cpp.

References QRect::intersects(), Q_ASSERT, rect, ret, QRect::setLeft(), 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 4461 of file qabstractitemview.cpp.

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

Referenced by addEditor(), columnsAboutToBeRemoved(), 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 4574 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 4348 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 4589 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:

◆ headerDataChanged()

void QAbstractItemViewPrivate::headerDataChanged ( )
inline

Definition at line 82 of file qabstractitemview_p.h.

Referenced by QAbstractItemView::setModel().

+ Here is the caller graph for this function:

◆ indexForEditor()

QModelIndex QAbstractItemViewPrivate::indexForEditor ( QWidget * editor) const

Definition at line 4595 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()

◆ interruptDelayedItemsLayout()

void QAbstractItemViewPrivate::interruptDelayedItemsLayout ( ) const

Definition at line 4424 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 3765 of file qabstractitemview.cpp.

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

+ Here is the call graph for this function:

◆ isAnimating()

bool QAbstractItemViewPrivate::isAnimating ( ) const
inline

Definition at line 247 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 257 of file qabstractitemview_p.h.

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

Referenced by columnsAboutToBeRemoved(), QListViewPrivate::isHiddenOrDisabled(), 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 254 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 251 of file qabstractitemview_p.h.

References model.

Referenced by QListViewPrivate::hasRectForIndex(), and QTreeViewPrivate::visualRect().

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

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

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

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

◆ layoutChanged()

void QAbstractItemViewPrivate::layoutChanged ( )
virtual

This slot is called when the layout is changed.

Definition at line 3743 of file qabstractitemview.cpp.

References doDelayedItemsLayout().

Referenced by columnsMoved(), rowsMoved(), QAbstractItemView::setModel(), and QTreeView::setModel().

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

◆ modelDestroyed()

void QAbstractItemViewPrivate::modelDestroyed ( )
virtual

Reimplemented in QTreeViewPrivate.

Definition at line 3732 of file qabstractitemview.cpp.

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

Referenced by QTreeViewPrivate::modelDestroyed(), and QAbstractItemView::setModel().

+ 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 4168 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 234 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 4638 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 183 of file qabstractitemview_p.h.

References QObject::destroyed(), QAbstractItemDelegate::destroyEditor(), QObject::disconnect(), and QAbstractItemView::editorDestroyed().

Referenced by 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 4608 of file qabstractitemview.cpp.

References QHash< Key, T >::cend(), QHash< Key, T >::constFind(), QObject::destroyed(), QObject::disconnect(), editor(), QAbstractItemView::editorDestroyed(), 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 4691 of file qabstractitemview.cpp.

References adjustViewOptionsForIndex(), draggablePaintPairs(), j, painter, pixmap, Q_ASSERT, QStyle::State_Selected, Qt::transparent, and window().

+ Here is the call graph for this function:

◆ rowsInserted()

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

This slot is called when rows have been inserted.

Definition at line 3686 of file qabstractitemview.cpp.

References Q_UNUSED, and updateGeometry().

Referenced by QAbstractItemView::setModel().

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

◆ rowsMoved()

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

Definition at line 3755 of file qabstractitemview.cpp.

References layoutChanged().

Referenced by QAbstractItemView::setModel().

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

◆ rowsRemoved()

void QAbstractItemViewPrivate::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 3568 of file qabstractitemview.cpp.

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

Referenced by QAbstractItemView::setModel(), and QTreeView::setModel().

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

◆ scrollContentsBy()

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

Definition at line 218 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 212 of file qabstractitemview_p.h.

◆ scrollerStateChanged()

void QAbstractItemViewPrivate::scrollerStateChanged ( )

Referenced by QAbstractItemView::viewportEvent().

+ Here is the caller graph for this function:

◆ selectAll()

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

Reimplemented in QListViewPrivate.

Definition at line 4719 of file qabstractitemview.cpp.

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

+ Here is the call graph for this function:

◆ selectAllInEditor()

void QAbstractItemViewPrivate::selectAllInEditor ( QWidget * w)

Definition at line 4444 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 269 of file qabstractitemview_p.h.

◆ selectionBehaviorFlags()

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

Definition at line 128 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 4626 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 206 of file qabstractitemview_p.h.

◆ setHoverIndex()

void QAbstractItemViewPrivate::setHoverIndex ( const QPersistentModelIndex & index)

Definition at line 123 of file qabstractitemview.cpp.

References hover, selectionBehavior, QAbstractItemView::SelectRows, viewport(), and visualRect().

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 4405 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 4365 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 96 of file qabstractitemview_p.h.

References QAbstractItemView::ScrollPerItem.

◆ stopAutoScroll()

void QAbstractItemViewPrivate::stopAutoScroll ( )
inline

Definition at line 102 of file qabstractitemview_p.h.

◆ updateDirtyRegion()

void QAbstractItemViewPrivate::updateDirtyRegion ( )
inline

Definition at line 223 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 4487 of file qabstractitemview.cpp.

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

+ Here is the call graph for this function:

◆ updateGeometry()

void QAbstractItemViewPrivate::updateGeometry ( )

Definition at line 4430 of file qabstractitemview.cpp.

Referenced by columnsInserted(), columnsRemoved(), rowsInserted(), and rowsRemoved().

+ Here is the caller graph for this function:

◆ visualRect()

virtual QRect QAbstractItemViewPrivate::visualRect ( const QModelIndex & index) const
inlinevirtual

Reimplemented in QTreeViewPrivate.

Definition at line 424 of file qabstractitemview_p.h.

Referenced by setHoverIndex().

+ Here is the caller graph for this function:

Member Data Documentation

◆ alternatingColors

bool QAbstractItemViewPrivate::alternatingColors

◆ autoScroll

bool QAbstractItemViewPrivate::autoScroll

Definition at line 385 of file qabstractitemview_p.h.

Referenced by shouldAutoScroll().

◆ autoScrollCount

int QAbstractItemViewPrivate::autoScrollCount

Definition at line 388 of file qabstractitemview_p.h.

◆ autoScrollMargin

int QAbstractItemViewPrivate::autoScrollMargin

Definition at line 387 of file qabstractitemview_p.h.

Referenced by shouldAutoScroll().

◆ autoScrollTimer

QBasicTimer QAbstractItemViewPrivate::autoScrollTimer

Definition at line 386 of file qabstractitemview_p.h.

◆ columnDelegates

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

Definition at line 331 of file qabstractitemview_p.h.

◆ ctrlDragSelectionFlag

QItemSelectionModel::SelectionFlag QAbstractItemViewPrivate::ctrlDragSelectionFlag

◆ currentIndexSet

bool QAbstractItemViewPrivate::currentIndexSet

Definition at line 414 of file qabstractitemview_p.h.

◆ currentlyCommittingEditor

QWidget* QAbstractItemViewPrivate::currentlyCommittingEditor

Definition at line 342 of file qabstractitemview_p.h.

◆ currentSelectionStartIndex

QPersistentModelIndex QAbstractItemViewPrivate::currentSelectionStartIndex

◆ delayedAutoScroll

QBasicTimer QAbstractItemViewPrivate::delayedAutoScroll

Definition at line 402 of file qabstractitemview_p.h.

Referenced by QTreeViewPrivate::collapse().

◆ delayedEditing

QBasicTimer QAbstractItemViewPrivate::delayedEditing

Definition at line 401 of file qabstractitemview_p.h.

◆ delayedPendingLayout

bool QAbstractItemViewPrivate::delayedPendingLayout
mutable

Definition at line 417 of file qabstractitemview_p.h.

Referenced by doDelayedItemsLayout(), and interruptDelayedItemsLayout().

◆ delayedReset

QBasicTimer QAbstractItemViewPrivate::delayedReset

Definition at line 403 of file qabstractitemview_p.h.

◆ draggedPosition

QPoint QAbstractItemViewPrivate::draggedPosition

Definition at line 353 of file qabstractitemview_p.h.

◆ editorIndexHash

QEditorIndexHash QAbstractItemViewPrivate::editorIndexHash

◆ editTriggers

QAbstractItemView::EditTriggers QAbstractItemViewPrivate::editTriggers

Definition at line 363 of file qabstractitemview_p.h.

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

◆ enteredIndex

QPersistentModelIndex QAbstractItemViewPrivate::enteredIndex

Definition at line 348 of file qabstractitemview_p.h.

Referenced by checkMouseMove().

◆ horizontalScrollMode

QAbstractItemView::ScrollMode QAbstractItemViewPrivate::horizontalScrollMode

Definition at line 406 of file qabstractitemview_p.h.

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

◆ horizontalScrollModeSet

bool QAbstractItemViewPrivate::horizontalScrollModeSet

Definition at line 422 of file qabstractitemview_p.h.

◆ hover

QPersistentModelIndex QAbstractItemViewPrivate::hover

Definition at line 367 of file qabstractitemview_p.h.

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

◆ iconSize

QSize QAbstractItemViewPrivate::iconSize

Definition at line 394 of file qabstractitemview_p.h.

◆ indexEditorHash

QIndexEditorHash QAbstractItemViewPrivate::indexEditorHash

◆ itemDelegate

QPointer<QAbstractItemDelegate> QAbstractItemViewPrivate::itemDelegate

Definition at line 329 of file qabstractitemview_p.h.

Referenced by QTreeViewPrivate::paintAlternatingRowColors().

◆ keyboardInput

QString QAbstractItemViewPrivate::keyboardInput

Definition at line 382 of file qabstractitemview_p.h.

◆ keyboardInputTime

QElapsedTimer QAbstractItemViewPrivate::keyboardInputTime

Definition at line 383 of file qabstractitemview_p.h.

Referenced by QAbstractItemViewPrivate().

◆ lastEditedIndex

QPersistentModelIndex QAbstractItemViewPrivate::lastEditedIndex

Definition at line 344 of file qabstractitemview_p.h.

◆ lastTrigger

QAbstractItemView::EditTrigger QAbstractItemViewPrivate::lastTrigger

Definition at line 364 of file qabstractitemview_p.h.

◆ model

◆ modelConnections

std::array<QMetaObject::Connection, 14> QAbstractItemViewPrivate::modelConnections

Definition at line 426 of file qabstractitemview_p.h.

◆ moveCursorUpdatedView

bool QAbstractItemViewPrivate::moveCursorUpdatedView

Definition at line 418 of file qabstractitemview_p.h.

◆ noSelectionOnMousePress

bool QAbstractItemViewPrivate::noSelectionOnMousePress

Definition at line 334 of file qabstractitemview_p.h.

◆ oldCurrent

QModelIndex QAbstractItemViewPrivate::oldCurrent

Definition at line 411 of file qabstractitemview_p.h.

Referenced by QListWidget::isPersistentEditorOpen().

◆ oldSelection

QItemSelection QAbstractItemViewPrivate::oldSelection

Definition at line 410 of file qabstractitemview_p.h.

Referenced by QListWidget::isPersistentEditorOpen().

◆ persistent

◆ pressClosedEditor

bool QAbstractItemViewPrivate::pressClosedEditor

Definition at line 345 of file qabstractitemview_p.h.

◆ pressClosedEditorWatcher

QBasicTimer QAbstractItemViewPrivate::pressClosedEditorWatcher

Definition at line 343 of file qabstractitemview_p.h.

◆ pressedAlreadySelected

bool QAbstractItemViewPrivate::pressedAlreadySelected

Definition at line 354 of file qabstractitemview_p.h.

Referenced by extendedSelectionCommand(), and multiSelectionCommand().

◆ pressedIndex

QPersistentModelIndex QAbstractItemViewPrivate::pressedIndex

Definition at line 349 of file qabstractitemview_p.h.

Referenced by extendedSelectionCommand(), and multiSelectionCommand().

◆ pressedModifiers

Qt::KeyboardModifiers QAbstractItemViewPrivate::pressedModifiers

Definition at line 351 of file qabstractitemview_p.h.

◆ pressedPosition

QPoint QAbstractItemViewPrivate::pressedPosition

Definition at line 352 of file qabstractitemview_p.h.

Referenced by QCommonListViewBase::pressedPosition().

◆ releaseFromDoubleClick

bool QAbstractItemViewPrivate::releaseFromDoubleClick

Definition at line 355 of file qabstractitemview_p.h.

◆ root

◆ rowDelegates

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

Definition at line 330 of file qabstractitemview_p.h.

◆ scrollbarConnections

std::array<QMetaObject::Connection, 4> QAbstractItemViewPrivate::scrollbarConnections

Definition at line 427 of file qabstractitemview_p.h.

Referenced by init().

◆ scrollDelayOffset

QPoint QAbstractItemViewPrivate::scrollDelayOffset

Definition at line 398 of file qabstractitemview_p.h.

Referenced by QTableViewPrivate::drawAndClipSpans().

◆ selectionBehavior

QAbstractItemView::SelectionBehavior QAbstractItemViewPrivate::selectionBehavior

◆ selectionMode

QAbstractItemView::SelectionMode QAbstractItemViewPrivate::selectionMode

Definition at line 336 of file qabstractitemview_p.h.

Referenced by columnsAboutToBeRemoved().

◆ selectionModel

◆ shouldClearStatusTip

bool QAbstractItemViewPrivate::shouldClearStatusTip

Definition at line 390 of file qabstractitemview_p.h.

Referenced by checkMouseMove().

◆ shouldScrollToCurrentOnShow

bool QAbstractItemViewPrivate::shouldScrollToCurrentOnShow

Definition at line 389 of file qabstractitemview_p.h.

◆ state

◆ stateBeforeAnimation

QAbstractItemView::State QAbstractItemViewPrivate::stateBeforeAnimation

Definition at line 362 of file qabstractitemview_p.h.

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

◆ tabKeyNavigation

bool QAbstractItemViewPrivate::tabKeyNavigation

Definition at line 369 of file qabstractitemview_p.h.

Referenced by QTableViewPrivate::init().

◆ textElideMode

Qt::TextElideMode QAbstractItemViewPrivate::textElideMode

Definition at line 395 of file qabstractitemview_p.h.

◆ updateRegion

QRegion QAbstractItemViewPrivate::updateRegion

Definition at line 397 of file qabstractitemview_p.h.

◆ updateTimer

QBasicTimer QAbstractItemViewPrivate::updateTimer

Definition at line 400 of file qabstractitemview_p.h.

◆ verticalScrollMode

◆ verticalScrollModeSet

bool QAbstractItemViewPrivate::verticalScrollModeSet

Definition at line 421 of file qabstractitemview_p.h.

◆ viewportEnteredNeeded

bool QAbstractItemViewPrivate::viewportEnteredNeeded

Definition at line 359 of file qabstractitemview_p.h.

Referenced by checkMouseMove().

◆ waitForIMCommit

bool QAbstractItemViewPrivate::waitForIMCommit

Definition at line 346 of file qabstractitemview_p.h.

Referenced by openEditor().

◆ wrapItemText

bool QAbstractItemViewPrivate::wrapItemText

Definition at line 416 of file qabstractitemview_p.h.

Referenced by QTableViewPrivate::heightHintForIndex().


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