Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
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::optional< Qt::DropActions > supportedDragActions
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
QPoint draggedPositionOffset
bool pressedAlreadySelected
bool releaseFromDoubleClick
bool viewportEnteredNeeded
QAbstractItemView::State state
QAbstractItemView::State stateBeforeAnimation
QAbstractItemView::EditTriggers editTriggers
QAbstractItemView::EditTrigger lastTrigger
QPersistentModelIndex root
QPersistentModelIndex hover
bool tabKeyNavigation
QString keyboardInput
QElapsedTimer keyboardInputTime
bool autoScroll
QBasicTimer autoScrollTimer
int autoScrollMargin
int autoScrollCount
bool shouldScrollToCurrentOnShow
bool shouldClearStatusTip
bool alternatingColors
QSize iconSize
Qt::TextElideMode textElideMode
QRegion updateRegion
QPoint scrollDelayOffset
QBasicTimer updateTimer
QBasicTimer delayedEditing
QBasicTimer delayedAutoScroll
QBasicTimer delayedReset
QAbstractItemView::ScrollMode verticalScrollMode
QAbstractItemView::ScrollMode horizontalScrollMode
QItemSelection oldSelection
QModelIndex oldCurrent
bool currentIndexSet
bool wrapItemText
bool delayedPendingLayout
bool moveCursorUpdatedView
bool verticalScrollModeSet
bool horizontalScrollModeSet
int updateThreshold
std::array< QMetaObject::Connection, 14 > modelConnections
std::array< QMetaObject::Connection, 4 > scrollbarConnections

Additional Inherited Members

Public Types inherited from QListViewPrivate
enum  ModeProperties {
  Wrap = 1 , Spacing = 2 , GridSize = 4 , Flow = 8 ,
  Movement = 16 , ResizeMode = 32 , SelectionRectVisible = 64
}

Detailed Description

Definition at line 113 of file qlistwidget_p.h.

Constructor & Destructor Documentation

◆ QListWidgetPrivate()

QListWidgetPrivate::QListWidgetPrivate ( )
inline

Definition at line 117 of file qlistwidget_p.h.

Member Function Documentation

◆ clearConnections()

void QListWidgetPrivate::clearConnections ( )

Definition at line 1098 of file qlistwidget.cpp.

◆ dataChanged()

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

Definition at line 1166 of file qlistwidget.cpp.

◆ emitCurrentItemChanged()

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

Definition at line 1142 of file qlistwidget.cpp.

◆ emitItemActivated()

void QListWidgetPrivate::emitItemActivated ( const QModelIndex & index)

Definition at line 1124 of file qlistwidget.cpp.

◆ emitItemChanged()

void QListWidgetPrivate::emitItemChanged ( const QModelIndex & index)

Definition at line 1136 of file qlistwidget.cpp.

◆ emitItemClicked()

void QListWidgetPrivate::emitItemClicked ( const QModelIndex & index)

Definition at line 1112 of file qlistwidget.cpp.

◆ emitItemDoubleClicked()

void QListWidgetPrivate::emitItemDoubleClicked ( const QModelIndex & index)

Definition at line 1118 of file qlistwidget.cpp.

◆ emitItemEntered()

void QListWidgetPrivate::emitItemEntered ( const QModelIndex & index)

Definition at line 1130 of file qlistwidget.cpp.

◆ emitItemPressed()

void QListWidgetPrivate::emitItemPressed ( const QModelIndex & index)

Definition at line 1106 of file qlistwidget.cpp.

◆ listModel()

QListModel * QListWidgetPrivate::listModel ( ) const
inline

Definition at line 118 of file qlistwidget_p.h.

◆ setup()

void QListWidgetPrivate::setup ( )

Definition at line 1073 of file qlistwidget.cpp.

◆ sort()

void QListWidgetPrivate::sort ( )

Definition at line 1160 of file qlistwidget.cpp.

Member Data Documentation

◆ connections

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

Definition at line 134 of file qlistwidget_p.h.

◆ selectionModelConnections

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

Definition at line 135 of file qlistwidget_p.h.

◆ sortingEnabled

bool QListWidgetPrivate::sortingEnabled

Definition at line 132 of file qlistwidget_p.h.

◆ sortOrder

Qt::SortOrder QListWidgetPrivate::sortOrder

Definition at line 131 of file qlistwidget_p.h.

◆ supportedDragActions

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

Definition at line 133 of file qlistwidget_p.h.


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