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
QCommonListViewBase Class Referenceabstract

#include <qlistview_p.h>

+ Inheritance diagram for QCommonListViewBase:
+ Collaboration diagram for QCommonListViewBase:

Public Member Functions

 QCommonListViewBase (QListView *q, QListViewPrivate *d)
 
virtual ~QCommonListViewBase ()
 
virtual int itemIndex (const QListViewItem &item) const =0
 
virtual QListViewItem indexToListViewItem (const QModelIndex &index) const =0
 
virtual bool doBatchedItemLayout (const QListViewLayoutInfo &info, int max)=0
 
virtual void clear ()=0
 
virtual void setRowCount (int)=0
 
virtual QList< QModelIndexintersectingSet (const QRect &area) const =0
 
virtual void dataChanged (const QModelIndex &, const QModelIndex &)=0
 
virtual int horizontalScrollToValue (int index, QListView::ScrollHint hint, bool leftOf, bool rightOf, const QRect &area, const QRect &rect) const
 
virtual int verticalScrollToValue (int index, QListView::ScrollHint hint, bool above, bool below, const QRect &area, const QRect &rect) const
 
virtual void scrollContentsBy (int dx, int dy, bool scrollElasticBand)
 
virtual QRect mapToViewport (const QRect &rect) const
 
virtual int horizontalOffset () const
 
virtual int verticalOffset () const
 
virtual void updateHorizontalScrollBar (const QSize &step)
 
virtual void updateVerticalScrollBar (const QSize &step)
 
virtual void appendHiddenRow (int row)
 
virtual void removeHiddenRow (int row)
 
virtual void setPositionForIndex (const QPoint &, const QModelIndex &)
 
int spacing () const
 
bool isWrapping () const
 
QSize gridSize () const
 
QListView::Flow flow () const
 
QListView::Movement movement () const
 
QPoint offset () const
 
QPoint pressedPosition () const
 
bool uniformItemSizes () const
 
int column () const
 
QScrollBarverticalScrollBar () const
 
QScrollBarhorizontalScrollBar () const
 
QListView::ScrollMode verticalScrollMode () const
 
QListView::ScrollMode horizontalScrollMode () const
 
QModelIndex modelIndex (int row) const
 
int rowCount () const
 
void initViewItemOption (QStyleOptionViewItem *option) const
 
QWidgetviewport () const
 
QRect clipRect () const
 
QSize cachedItemSize () const
 
QRect viewItemRect (const QListViewItem &item) const
 
QSize itemSize (const QStyleOptionViewItem &opt, const QModelIndex &idx) const
 
QAbstractItemDelegatedelegate (const QModelIndex &idx) const
 
bool isHidden (int row) const
 
int hiddenCount () const
 
bool isRightToLeft () const
 

Public Attributes

QListViewPrivatedd
 
QListViewqq
 
QSize contentsSize
 
int batchStartRow
 
int batchSavedDeltaSeg
 

Detailed Description

Definition at line 82 of file qlistview_p.h.

Constructor & Destructor Documentation

◆ QCommonListViewBase()

QCommonListViewBase::QCommonListViewBase ( QListView * q,
QListViewPrivate * d )
inline

Definition at line 85 of file qlistview_p.h.

◆ ~QCommonListViewBase()

virtual QCommonListViewBase::~QCommonListViewBase ( )
inlinevirtual

Definition at line 86 of file qlistview_p.h.

Member Function Documentation

◆ appendHiddenRow()

void QCommonListViewBase::appendHiddenRow ( int row)
virtual

Reimplemented in QIconModeViewBase.

Definition at line 1988 of file qlistview.cpp.

References dd, QListViewPrivate::hiddenRows, QAbstractItemModel::index(), QSet< T >::insert(), QAbstractItemViewPrivate::model, qq, and QAbstractItemView::rootIndex().

Referenced by QIconModeViewBase::appendHiddenRow().

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

◆ cachedItemSize()

QSize QCommonListViewBase::cachedItemSize ( ) const
inline

Definition at line 455 of file qlistview_p.h.

References QListViewPrivate::cachedItemSize, and dd.

Referenced by QListModeViewBase::indexToListViewItem().

+ Here is the caller graph for this function:

◆ clear()

virtual void QCommonListViewBase::clear ( )
pure virtual

Implemented in QListModeViewBase, and QIconModeViewBase.

Referenced by QListViewPrivate::clear().

+ Here is the caller graph for this function:

◆ clipRect()

QRect QCommonListViewBase::clipRect ( ) const
inline

Definition at line 453 of file qlistview_p.h.

References dd.

◆ column()

int QCommonListViewBase::column ( ) const
inline

Definition at line 440 of file qlistview_p.h.

References QListViewPrivate::column, and dd.

Referenced by QIconModeViewBase::dataChanged().

+ Here is the caller graph for this function:

◆ dataChanged()

virtual void QCommonListViewBase::dataChanged ( const QModelIndex & ,
const QModelIndex &  )
pure virtual

Implemented in QListModeViewBase, and QIconModeViewBase.

◆ delegate()

QAbstractItemDelegate * QCommonListViewBase::delegate ( const QModelIndex & idx) const
inline

Definition at line 460 of file qlistview_p.h.

References QAbstractItemView::itemDelegateForIndex(), and qq.

+ Here is the call graph for this function:

◆ doBatchedItemLayout()

virtual bool QCommonListViewBase::doBatchedItemLayout ( const QListViewLayoutInfo & info,
int max )
pure virtual

Implemented in QListModeViewBase, and QIconModeViewBase.

Referenced by QListViewPrivate::doItemsLayout().

+ Here is the caller graph for this function:

◆ flow()

QListView::Flow QCommonListViewBase::flow ( ) const
inline

◆ gridSize()

QSize QCommonListViewBase::gridSize ( ) const
inline

Definition at line 433 of file qlistview_p.h.

References dd, and QListViewPrivate::gridSize().

+ Here is the call graph for this function:

◆ hiddenCount()

int QCommonListViewBase::hiddenCount ( ) const
inline

Definition at line 464 of file qlistview_p.h.

References dd, QListViewPrivate::hiddenRows, and QSet< T >::size().

Referenced by QIconModeViewBase::setRowCount().

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

◆ horizontalOffset()

int QCommonListViewBase::horizontalOffset ( ) const
virtual

Reimplemented in QListModeViewBase.

Definition at line 2091 of file qlistview.cpp.

References horizontalScrollBar(), isRightToLeft(), and QAbstractSlider::value.

Referenced by QListModeViewBase::horizontalOffset().

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

◆ horizontalScrollBar()

QScrollBar * QCommonListViewBase::horizontalScrollBar ( ) const
inline

Definition at line 443 of file qlistview_p.h.

References qq.

Referenced by horizontalOffset(), QListModeViewBase::horizontalOffset(), horizontalScrollToValue(), QListModeViewBase::horizontalScrollToValue(), QListModeViewBase::scrollContentsBy(), updateHorizontalScrollBar(), and QListModeViewBase::updateHorizontalScrollBar().

+ Here is the caller graph for this function:

◆ horizontalScrollMode()

QListView::ScrollMode QCommonListViewBase::horizontalScrollMode ( ) const
inline

Definition at line 445 of file qlistview_p.h.

References QAbstractItemView::horizontalScrollMode, and qq.

Referenced by QListModeViewBase::horizontalOffset(), QListModeViewBase::horizontalScrollToValue(), QListModeViewBase::scrollContentsBy(), and QListModeViewBase::updateHorizontalScrollBar().

+ Here is the caller graph for this function:

◆ horizontalScrollToValue()

int QCommonListViewBase::horizontalScrollToValue ( int index,
QListView::ScrollHint hint,
bool leftOf,
bool rightOf,
const QRect & area,
const QRect & rect ) const
virtual

Reimplemented in QListModeViewBase.

Definition at line 2096 of file qlistview.cpp.

References area(), hint(), horizontalScrollBar(), isRightToLeft(), QAbstractItemView::PositionAtCenter, qMin(), rect, and QAbstractSlider::value.

Referenced by QListViewPrivate::horizontalScrollToValue(), and QListModeViewBase::horizontalScrollToValue().

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

◆ indexToListViewItem()

virtual QListViewItem QCommonListViewBase::indexToListViewItem ( const QModelIndex & index) const
pure virtual

Implemented in QListModeViewBase, and QIconModeViewBase.

Referenced by QListViewPrivate::indexToListViewItem().

+ Here is the caller graph for this function:

◆ initViewItemOption()

void QCommonListViewBase::initViewItemOption ( QStyleOptionViewItem * option) const
inline

Definition at line 451 of file qlistview_p.h.

References QListView::initViewItemOption(), and qq.

Referenced by QIconModeViewBase::dataChanged(), QIconModeViewBase::doBatchedItemLayout(), and QListModeViewBase::indexToListViewItem().

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

◆ intersectingSet()

virtual QList< QModelIndex > QCommonListViewBase::intersectingSet ( const QRect & area) const
pure virtual

Implemented in QListModeViewBase, and QIconModeViewBase.

◆ isHidden()

bool QCommonListViewBase::isHidden ( int row) const
inline

Definition at line 463 of file qlistview_p.h.

References dd, and QListViewPrivate::isHidden().

Referenced by QListModeViewBase::intersectingSet().

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

◆ isRightToLeft()

bool QCommonListViewBase::isRightToLeft ( ) const
inline

Definition at line 466 of file qlistview_p.h.

References qq.

Referenced by horizontalOffset(), QListModeViewBase::horizontalOffset(), horizontalScrollToValue(), scrollContentsBy(), and QIconModeViewBase::scrollContentsBy().

+ Here is the caller graph for this function:

◆ isWrapping()

bool QCommonListViewBase::isWrapping ( ) const
inline

Definition at line 432 of file qlistview_p.h.

References dd, and QListViewPrivate::isWrapping().

Referenced by QListModeViewBase::horizontalOffset(), QListModeViewBase::horizontalScrollToValue(), QListModeViewBase::indexToListViewItem(), QListModeViewBase::mapToViewport(), QListModeViewBase::scrollContentsBy(), QListModeViewBase::updateHorizontalScrollBar(), QListModeViewBase::updateVerticalScrollBar(), QListModeViewBase::verticalOffset(), and QListModeViewBase::verticalScrollToValue().

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

◆ itemIndex()

virtual int QCommonListViewBase::itemIndex ( const QListViewItem & item) const
pure virtual

Implemented in QListModeViewBase, and QIconModeViewBase.

◆ itemSize()

QSize QCommonListViewBase::itemSize ( const QStyleOptionViewItem & opt,
const QModelIndex & idx ) const
inline

Definition at line 457 of file qlistview_p.h.

References dd, QListViewPrivate::itemSize(), and opt.

Referenced by QIconModeViewBase::dataChanged(), QIconModeViewBase::doBatchedItemLayout(), and QListModeViewBase::indexToListViewItem().

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

◆ mapToViewport()

virtual QRect QCommonListViewBase::mapToViewport ( const QRect & rect) const
inlinevirtual

Reimplemented in QListModeViewBase.

Definition at line 102 of file qlistview_p.h.

References rect.

Referenced by QListViewPrivate::mapToViewport().

+ Here is the caller graph for this function:

◆ modelIndex()

QModelIndex QCommonListViewBase::modelIndex ( int row) const
inline

Definition at line 447 of file qlistview_p.h.

References QListViewPrivate::column, dd, QAbstractItemModel::index(), QAbstractItemViewPrivate::model, and QAbstractItemViewPrivate::root.

Referenced by QIconModeViewBase::dataChanged(), QIconModeViewBase::doBatchedItemLayout(), and QListModeViewBase::intersectingSet().

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

◆ movement()

QListView::Movement QCommonListViewBase::movement ( ) const
inline

Definition at line 435 of file qlistview_p.h.

References dd, and QListViewPrivate::movement.

◆ offset()

QPoint QCommonListViewBase::offset ( ) const
inline

Definition at line 437 of file qlistview_p.h.

References dd, and QAbstractItemViewPrivate::offset().

+ Here is the call graph for this function:

◆ pressedPosition()

QPoint QCommonListViewBase::pressedPosition ( ) const
inline

Definition at line 438 of file qlistview_p.h.

References dd, and QAbstractItemViewPrivate::pressedPosition.

◆ removeHiddenRow()

void QCommonListViewBase::removeHiddenRow ( int row)
virtual

Reimplemented in QIconModeViewBase.

Definition at line 1993 of file qlistview.cpp.

References dd, QListViewPrivate::hiddenRows, QAbstractItemModel::index(), QAbstractItemViewPrivate::model, qq, QSet< T >::remove(), and QAbstractItemView::rootIndex().

Referenced by QIconModeViewBase::removeHiddenRow().

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

◆ rowCount()

int QCommonListViewBase::rowCount ( ) const
inline

Definition at line 449 of file qlistview_p.h.

References dd, QAbstractItemViewPrivate::model, QAbstractItemViewPrivate::root, and QAbstractItemModel::rowCount().

Referenced by QListModeViewBase::setRowCount(), and QIconModeViewBase::setRowCount().

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

◆ scrollContentsBy()

void QCommonListViewBase::scrollContentsBy ( int dx,
int dy,
bool scrollElasticBand )
virtual

Reimplemented in QListModeViewBase, and QIconModeViewBase.

Definition at line 2072 of file qlistview.cpp.

References dd, isRightToLeft(), and QAbstractItemViewPrivate::scrollContentsBy().

Referenced by QListModeViewBase::scrollContentsBy(), and QIconModeViewBase::scrollContentsBy().

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

◆ setPositionForIndex()

virtual void QCommonListViewBase::setPositionForIndex ( const QPoint & ,
const QModelIndex &  )
inlinevirtual

Reimplemented in QIconModeViewBase.

Definition at line 109 of file qlistview_p.h.

◆ setRowCount()

virtual void QCommonListViewBase::setRowCount ( int )
pure virtual

Implemented in QListModeViewBase, and QIconModeViewBase.

Referenced by QListViewPrivate::prepareItemsLayout().

+ Here is the caller graph for this function:

◆ spacing()

int QCommonListViewBase::spacing ( ) const
inline

Definition at line 431 of file qlistview_p.h.

References dd, and QListViewPrivate::spacing().

Referenced by QListModeViewBase::indexToListViewItem(), QListModeViewBase::mapToViewport(), QListModeViewBase::scrollContentsBy(), updateHorizontalScrollBar(), updateVerticalScrollBar(), QListModeViewBase::verticalOffset(), and verticalScrollToValue().

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

◆ uniformItemSizes()

bool QCommonListViewBase::uniformItemSizes ( ) const
inline

Definition at line 439 of file qlistview_p.h.

References dd, and QListViewPrivate::uniformItemSizes.

Referenced by QListModeViewBase::indexToListViewItem().

+ Here is the caller graph for this function:

◆ updateHorizontalScrollBar()

void QCommonListViewBase::updateHorizontalScrollBar ( const QSize & step)
virtual

Reimplemented in QListModeViewBase.

Definition at line 2012 of file qlistview.cpp.

References contentsSize, QSize::height(), horizontalScrollBar(), qq, Qt::ScrollBarAsNeeded, QAbstractSlider::setPageStep(), QAbstractSlider::setRange(), spacing(), viewport(), QListModeViewBase::viewportSize(), and QSize::width().

Referenced by QListModeViewBase::updateHorizontalScrollBar().

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

◆ updateVerticalScrollBar()

void QCommonListViewBase::updateVerticalScrollBar ( const QSize & step)
virtual

Reimplemented in QListModeViewBase.

Definition at line 2042 of file qlistview.cpp.

References contentsSize, QSize::height(), qq, Qt::ScrollBarAsNeeded, QAbstractSlider::setPageStep(), QAbstractSlider::setRange(), spacing(), verticalScrollBar(), viewport(), QListModeViewBase::viewportSize(), and QSize::width().

Referenced by QListModeViewBase::updateVerticalScrollBar().

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

◆ verticalOffset()

virtual int QCommonListViewBase::verticalOffset ( ) const
inlinevirtual

Reimplemented in QListModeViewBase.

Definition at line 104 of file qlistview_p.h.

References QAbstractSlider::value, and verticalScrollBar().

Referenced by QListModeViewBase::verticalOffset().

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

◆ verticalScrollBar()

QScrollBar * QCommonListViewBase::verticalScrollBar ( ) const
inline

Definition at line 442 of file qlistview_p.h.

References qq.

Referenced by QListModeViewBase::scrollContentsBy(), updateVerticalScrollBar(), QListModeViewBase::updateVerticalScrollBar(), verticalOffset(), QListModeViewBase::verticalOffset(), verticalScrollToValue(), and QListModeViewBase::verticalScrollToValue().

+ Here is the caller graph for this function:

◆ verticalScrollMode()

QListView::ScrollMode QCommonListViewBase::verticalScrollMode ( ) const
inline

Definition at line 444 of file qlistview_p.h.

References qq, and QAbstractItemView::verticalScrollMode.

Referenced by QListModeViewBase::scrollContentsBy(), QListModeViewBase::updateVerticalScrollBar(), QListModeViewBase::verticalOffset(), and QListModeViewBase::verticalScrollToValue().

+ Here is the caller graph for this function:

◆ verticalScrollToValue()

int QCommonListViewBase::verticalScrollToValue ( int index,
QListView::ScrollHint hint,
bool above,
bool below,
const QRect & area,
const QRect & rect ) const
virtual

Reimplemented in QListModeViewBase.

Definition at line 2077 of file qlistview.cpp.

References QRect::adjusted(), area(), QRect::bottom(), QRect::height(), hint(), QAbstractItemView::PositionAtBottom, QAbstractItemView::PositionAtCenter, QAbstractItemView::PositionAtTop, qMin(), rect, spacing(), QRect::top(), QAbstractSlider::value, and verticalScrollBar().

Referenced by QListViewPrivate::verticalScrollToValue(), and QListModeViewBase::verticalScrollToValue().

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

◆ viewItemRect()

QRect QCommonListViewBase::viewItemRect ( const QListViewItem & item) const
inline

Definition at line 456 of file qlistview_p.h.

References dd, item, and QListViewPrivate::viewItemRect().

+ Here is the call graph for this function:

◆ viewport()

QWidget * QCommonListViewBase::viewport ( ) const
inline

Definition at line 452 of file qlistview_p.h.

References dd.

Referenced by QListModeViewBase::indexToListViewItem(), QListModeViewBase::mapToViewport(), QIconModeViewBase::scrollContentsBy(), updateHorizontalScrollBar(), QListModeViewBase::updateHorizontalScrollBar(), updateVerticalScrollBar(), and QListModeViewBase::updateVerticalScrollBar().

+ Here is the caller graph for this function:

Member Data Documentation

◆ batchSavedDeltaSeg

int QCommonListViewBase::batchSavedDeltaSeg

Definition at line 158 of file qlistview_p.h.

Referenced by QListModeViewBase::clear(), and QIconModeViewBase::clear().

◆ batchStartRow

◆ contentsSize

◆ dd

◆ qq


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