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

#include <qlistwidget_p.h>

+ Inheritance diagram for QListWidgetPrivate:
+ Collaboration diagram for QListWidgetPrivate:

Public Member Functions

 QListWidgetPrivate ()
 
QListModellistModel () 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 &current, const QModelIndex &previous)
 
void sort ()
 
void dataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight)
 
- Public Member Functions inherited from QListViewPrivate
 QListViewPrivate ()
 
 ~QListViewPrivate ()
 
void clear ()
 
void prepareItemsLayout ()
 
bool doItemsLayout (int num)
 
QList< QModelIndexintersectingSet (const QRect &area, bool doLayout=true) const
 
void resetBatchStartRow ()
 
int batchStartRow () const
 
QSize contentsSize () const
 
void setContentsSize (int w, int h)
 
int flipX (int x) const
 
QPoint flipX (const QPoint &p) const
 
QRect flipX (const QRect &r) const
 
QRect viewItemRect (const QListViewItem &item) const
 
QListViewItem indexToListViewItem (const QModelIndex &index) const
 
QModelIndex listViewItemToIndex (const QListViewItem &item) const
 
bool hasRectForIndex (const QModelIndex &index) const
 
QRect rectForIndex (const QModelIndex &index) const
 
QRect cellRectForIndex (const QModelIndex &index)
 
void viewUpdateGeometries ()
 
QRect mapToViewport (const QRect &rect, bool extend=true) const
 
QModelIndex closestIndex (const QRect &target, const QList< QModelIndex > &candidates) const
 
QSize itemSize (const QStyleOptionViewItem &option, const QModelIndex &index) const
 
bool selectionAllowed (const QModelIndex &index) const override
 
int horizontalScrollToValue (const QModelIndex &index, const QRect &rect, QListView::ScrollHint hint) const
 
int verticalScrollToValue (const QModelIndex &index, const QRect &rect, QListView::ScrollHint hint) const
 
QItemSelection selection (const QRect &rect) const
 
void selectAll (QItemSelectionModel::SelectionFlags command) override
 
void setGridSize (const QSize &size)
 
QSize gridSize () const
 
void setWrapping (bool b)
 
bool isWrapping () const
 
void setSpacing (int s)
 
int spacing () const
 
void setSelectionRectVisible (bool visible)
 
bool isSelectionRectVisible () const
 
QModelIndex modelIndex (int row) const
 
bool isHidden (int row) const
 
QList< int > hiddenRowIds () const
 
bool isHiddenOrDisabled (int row) const
 
void removeCurrentAndDisabled (QList< QModelIndex > *indexes, const QModelIndex &current) const
 
void scrollElasticBandBy (int dx, int dy)
 
QItemViewPaintPairs draggablePaintPairs (const QModelIndexList &indexes, QRect *r) const override
 \reimp
 
void emitIndexesMoved (const QModelIndexList &indexes)
 
- 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)
 
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
 
void setHoverIndex (const QPersistentModelIndex &index)
 
void checkMouseMove (const QPersistentModelIndex &index)
 
void checkMouseMove (const QPoint &pos)
 
QItemSelectionModel::SelectionFlags selectionBehaviorFlags () 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
 
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

Qt::SortOrder sortOrder
 
bool sortingEnabled
 
std::array< QMetaObject::Connection, 8 > connections
 
std::array< QMetaObject::Connection, 2 > selectionModelConnections
 
- Public Attributes inherited from QListViewPrivate
QCommonListViewBasecommonListView
 
bool wrap
 
int space
 
QSize grid
 
QListView::Flow flow
 
QListView::Movement movement
 
QListView::ResizeMode resizeMode
 
QListView::LayoutMode layoutMode
 
QListView::ViewMode viewMode
 
uint modeProperties: 8
 
QRect layoutBounds
 
QBasicTimer batchLayoutTimer
 
QSet< QPersistentModelIndexhiddenRows
 
int column
 
bool uniformItemSizes
 
QSize cachedItemSize
 
int batchSize
 
QRect elasticBand
 
bool showElasticBand
 
Qt::Alignment itemAlignment
 
- 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 QListViewPrivate
enum  ModeProperties {
  Wrap = 1 , Spacing = 2 , GridSize = 4 , Flow = 8 ,
  Movement = 16 , ResizeMode = 32 , SelectionRectVisible = 64
}
 

Detailed Description

Definition at line 110 of file qlistwidget_p.h.

Constructor & Destructor Documentation

◆ QListWidgetPrivate()

QListWidgetPrivate::QListWidgetPrivate ( )
inline

Definition at line 114 of file qlistwidget_p.h.

Member Function Documentation

◆ clearConnections()

void QListWidgetPrivate::clearConnections ( )

Definition at line 1106 of file qlistwidget.cpp.

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

+ Here is the call graph for this function:

◆ dataChanged()

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

Definition at line 1174 of file qlistwidget.cpp.

References QModelIndex::column(), QListModel::ensureSorted(), QModelIndex::isValid(), listModel(), QModelIndex::row(), sortingEnabled, and sortOrder.

Referenced by setup().

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

◆ emitCurrentItemChanged()

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

Definition at line 1150 of file qlistwidget.cpp.

References at, QListModel::at(), emit, listModel(), QModelIndex::row(), and QListWidgetItem::text().

Referenced by QListWidget::setSelectionModel().

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

◆ emitItemActivated()

void QListWidgetPrivate::emitItemActivated ( const QModelIndex & index)

Definition at line 1132 of file qlistwidget.cpp.

References at, emit, and listModel().

Referenced by setup().

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

◆ emitItemChanged()

void QListWidgetPrivate::emitItemChanged ( const QModelIndex & index)

Definition at line 1144 of file qlistwidget.cpp.

References at, emit, and listModel().

Referenced by setup().

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

◆ emitItemClicked()

void QListWidgetPrivate::emitItemClicked ( const QModelIndex & index)

Definition at line 1120 of file qlistwidget.cpp.

References at, emit, and listModel().

Referenced by setup().

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

◆ emitItemDoubleClicked()

void QListWidgetPrivate::emitItemDoubleClicked ( const QModelIndex & index)

Definition at line 1126 of file qlistwidget.cpp.

References at, emit, and listModel().

Referenced by setup().

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

◆ emitItemEntered()

void QListWidgetPrivate::emitItemEntered ( const QModelIndex & index)

Definition at line 1138 of file qlistwidget.cpp.

References at, emit, and listModel().

Referenced by setup().

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

◆ emitItemPressed()

void QListWidgetPrivate::emitItemPressed ( const QModelIndex & index)

Definition at line 1114 of file qlistwidget.cpp.

References at, emit, and listModel().

Referenced by setup().

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

◆ listModel()

QListModel * QListWidgetPrivate::listModel ( ) const
inline

Definition at line 115 of file qlistwidget_p.h.

References QAbstractItemViewPrivate::model.

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

+ Here is the caller graph for this function:

◆ setup()

◆ sort()

void QListWidgetPrivate::sort ( )

Definition at line 1168 of file qlistwidget.cpp.

References QAbstractItemViewPrivate::model, sortingEnabled, and sortOrder.

Referenced by setup().

+ Here is the caller graph for this function:

Member Data Documentation

◆ connections

std::array<QMetaObject::Connection, 8> QListWidgetPrivate::connections

Definition at line 130 of file qlistwidget_p.h.

Referenced by clearConnections(), and setup().

◆ selectionModelConnections

std::array<QMetaObject::Connection, 2> QListWidgetPrivate::selectionModelConnections

Definition at line 131 of file qlistwidget_p.h.

Referenced by clearConnections().

◆ sortingEnabled

bool QListWidgetPrivate::sortingEnabled

Definition at line 128 of file qlistwidget_p.h.

Referenced by dataChanged(), and sort().

◆ sortOrder

Qt::SortOrder QListWidgetPrivate::sortOrder

Definition at line 127 of file qlistwidget_p.h.

Referenced by dataChanged(), and sort().


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