![]() |
Qt 6.x
The Qt SDK
|
#include <qlistview_p.h>
Public Types | |
enum | ModeProperties { Wrap = 1 , Spacing = 2 , GridSize = 4 , Flow = 8 , Movement = 16 , ResizeMode = 32 , SelectionRectVisible = 64 } |
Definition at line 264 of file qlistview_p.h.
Enumerator | |
---|---|
Wrap | |
Spacing | |
GridSize | |
Flow | |
Movement | |
ResizeMode | |
SelectionRectVisible |
Definition at line 398 of file qlistview_p.h.
QListViewPrivate::QListViewPrivate | ( | ) |
Definition at line 1751 of file qlistview.cpp.
QListViewPrivate::~QListViewPrivate | ( | ) |
Definition at line 1770 of file qlistview.cpp.
References commonListView.
|
inline |
Definition at line 284 of file qlistview_p.h.
Referenced by doItemsLayout().
|
inline |
Definition at line 314 of file qlistview_p.h.
References QAbstractItemViewPrivate::executePostedLayout(), and rect.
void QListViewPrivate::clear | ( | ) |
Definition at line 1775 of file qlistview.cpp.
References cachedItemSize, QCommonListViewBase::clear(), and commonListView.
Referenced by prepareItemsLayout().
QModelIndex QListViewPrivate::closestIndex | ( | const QRect & | target, |
const QList< QModelIndex > & | candidates | ||
) | const |
Definition at line 1865 of file qlistview.cpp.
References QList< T >::begin(), QRect::bottom(), QRect::center(), QList< T >::end(), indexToListViewItem(), it, qAbs(), QRect::right(), QPoint::x(), QRect::x(), QPoint::y(), and QRect::y().
|
inline |
Definition at line 285 of file qlistview_p.h.
bool QListViewPrivate::doItemsLayout | ( | int | delta | ) |
Definition at line 1817 of file qlistview.cpp.
References batchStartRow(), commonListView, QCommonListViewBase::doBatchedItemLayout(), flow, gridSize(), info, isWrapping(), layoutBounds, QAbstractItemViewPrivate::model, prepareItemsLayout(), qMin(), QAbstractItemViewPrivate::root, QAbstractItemModel::rowCount(), and spacing().
|
overridevirtual |
\reimp
We have a QListView way of knowing what elements are on the viewport through the intersectingSet function
Reimplemented from QAbstractItemViewPrivate.
Definition at line 617 of file qlistview.cpp.
References QList< T >::begin(), QList< T >::cbegin(), QList< T >::cend(), QList< T >::end(), intersectingSet(), QRect::left(), Q_ASSERT, rect, ret, QRect::right(), QRect::translated(), and viewport().
|
inline |
Definition at line 379 of file qlistview_p.h.
References emit.
Definition at line 290 of file qlistview_p.h.
Definition at line 292 of file qlistview_p.h.
|
inline |
Definition at line 288 of file qlistview_p.h.
References qMax(), and viewport().
|
inline |
Definition at line 349 of file qlistview_p.h.
Referenced by doItemsLayout(), and QCommonListViewBase::gridSize().
|
inline |
Definition at line 301 of file qlistview_p.h.
References QAbstractItemViewPrivate::isIndexValid().
|
inline |
Definition at line 363 of file qlistview_p.h.
References QList< T >::reserve().
int QListViewPrivate::horizontalScrollToValue | ( | const QModelIndex & | index, |
const QRect & | rect, | ||
QListView::ScrollHint | hint | ||
) | const |
Definition at line 553 of file qlistview.cpp.
References area(), commonListView, hint(), QCommonListViewBase::horizontalScrollToValue(), rect, and viewport().
QListViewItem QListViewPrivate::indexToListViewItem | ( | const QModelIndex & | index | ) | const |
Definition at line 1845 of file qlistview.cpp.
References commonListView, QCommonListViewBase::indexToListViewItem(), and isHidden().
Referenced by closestIndex().
|
inline |
Definition at line 276 of file qlistview_p.h.
References area(), and QAbstractItemViewPrivate::executePostedLayout().
Referenced by draggablePaintPairs(), and selection().
|
inline |
Definition at line 358 of file qlistview_p.h.
References QAbstractTableModel::index(), QAbstractItemViewPrivate::isPersistent(), and model.
Referenced by indexToListViewItem(), QCommonListViewBase::isHidden(), and selectAll().
|
inline |
Definition at line 371 of file qlistview_p.h.
References QAbstractItemViewPrivate::isIndexEnabled().
|
inline |
Definition at line 355 of file qlistview_p.h.
|
inline |
Definition at line 351 of file qlistview_p.h.
References wrap().
Referenced by doItemsLayout(), and QCommonListViewBase::isWrapping().
QSize QListViewPrivate::itemSize | ( | const QStyleOptionViewItem & | option, |
const QModelIndex & | index | ||
) | const |
Definition at line 1901 of file qlistview.cpp.
References cachedItemSize, QAbstractItemModel::index(), QSize::isValid(), QAbstractItemViewPrivate::model, QAbstractItemViewPrivate::root, QAbstractItemModel::rowCount(), QAbstractItemDelegate::sizeHint(), and uniformItemSizes.
Referenced by QCommonListViewBase::itemSize().
|
inline |
Definition at line 298 of file qlistview_p.h.
References QAbstractTableModel::index(), item, and model.
Definition at line 1853 of file qlistview.cpp.
References commonListView, QCommonListViewBase::mapToViewport(), and rect.
|
inline |
Definition at line 357 of file qlistview_p.h.
References QAbstractTableModel::index(), and model.
void QListViewPrivate::prepareItemsLayout | ( | ) |
Definition at line 1782 of file qlistview.cpp.
References QRect::adjust(), clear(), QAbstractItemModel::columnCount(), commonListView, flow, layoutBounds, QListView::LeftToRight, QAbstractItemViewPrivate::model, QStyle::PM_DefaultFrameWidth, QStyle::PM_ScrollBarExtent, QStyle::PM_ScrollView_ScrollBarOverlap, QAbstractItemViewPrivate::root, QAbstractItemModel::rowCount(), Qt::ScrollBarAsNeeded, QCommonListViewBase::setRowCount(), and QStyle::SH_ScrollView_FrameOnlyAroundContents.
Referenced by doItemsLayout().
|
inline |
Definition at line 306 of file qlistview_p.h.
References QAbstractItemViewPrivate::executePostedLayout().
void QListViewPrivate::removeCurrentAndDisabled | ( | QList< QModelIndex > * | indexes, |
const QModelIndex & | current | ||
) | const |
Definition at line 1964 of file qlistview.cpp.
References QAbstractItemViewPrivate::isIndexEnabled(), and QList< T >::removeIf().
|
inline |
Definition at line 283 of file qlistview_p.h.
void QListViewPrivate::scrollElasticBandBy | ( | int | dx, |
int | dy | ||
) |
Definition at line 3368 of file qlistview.cpp.
References QRect::bottom(), elasticBand, QRect::left(), QRect::moveBottom(), QRect::moveLeft(), QRect::moveRight(), QRect::moveTop(), QRect::right(), and QRect::top().
Referenced by QIconModeViewBase::scrollContentsBy().
|
overridevirtual |
Reimplemented from QAbstractItemViewPrivate.
Definition at line 577 of file qlistview.cpp.
References QList< T >::append(), QAbstractItemModel::columnCount(), QAbstractItemModel::index(), QList< T >::isEmpty(), isHidden(), QModelIndex::isValid(), QAbstractItemViewPrivate::model, QAbstractItemViewPrivate::root, QAbstractItemModel::rowCount(), QItemSelectionModel::select(), selection, and QAbstractItemViewPrivate::selectionModel.
QItemSelection QListViewPrivate::selection | ( | const QRect & | rect | ) | const |
Definition at line 1917 of file qlistview.cpp.
References QList< T >::begin(), QList< T >::end(), intersectingSet(), QModelIndex::isValid(), it, rect, QModelIndex::row(), QItemSelection::select(), and selection.
|
inlineoverridevirtual |
Reimplemented from QAbstractItemViewPrivate.
Definition at line 334 of file qlistview_p.h.
References QListView::ListMode.
|
inline |
Definition at line 286 of file qlistview_p.h.
Definition at line 348 of file qlistview_p.h.
|
inline |
Definition at line 354 of file qlistview_p.h.
|
inline |
Definition at line 352 of file qlistview_p.h.
|
inline |
Definition at line 350 of file qlistview_p.h.
References wrap().
|
inline |
Definition at line 353 of file qlistview_p.h.
Referenced by doItemsLayout(), and QCommonListViewBase::spacing().
int QListViewPrivate::verticalScrollToValue | ( | const QModelIndex & | index, |
const QRect & | rect, | ||
QListView::ScrollHint | hint | ||
) | const |
Definition at line 567 of file qlistview.cpp.
References area(), commonListView, QAbstractItemView::EnsureVisible, hint(), rect, QCommonListViewBase::verticalScrollToValue(), and viewport().
|
inline |
Definition at line 294 of file qlistview_p.h.
References item.
Referenced by QCommonListViewBase::viewItemRect().
|
inline |
Definition at line 326 of file qlistview_p.h.
Referenced by QIconModeViewBase::setPositionForIndex().
QBasicTimer QListViewPrivate::batchLayoutTimer |
Definition at line 413 of file qlistview_p.h.
int QListViewPrivate::batchSize |
Definition at line 421 of file qlistview_p.h.
|
mutable |
Definition at line 420 of file qlistview_p.h.
Referenced by QCommonListViewBase::cachedItemSize(), clear(), and itemSize().
int QListViewPrivate::column |
Definition at line 418 of file qlistview_p.h.
Referenced by QCommonListViewBase::column(), and QCommonListViewBase::modelIndex().
QCommonListViewBase* QListViewPrivate::commonListView |
Definition at line 382 of file qlistview_p.h.
Referenced by ~QListViewPrivate(), clear(), doItemsLayout(), horizontalScrollToValue(), indexToListViewItem(), mapToViewport(), prepareItemsLayout(), and verticalScrollToValue().
QRect QListViewPrivate::elasticBand |
Definition at line 423 of file qlistview_p.h.
Referenced by scrollElasticBandBy().
QListView::Flow QListViewPrivate::flow |
Definition at line 390 of file qlistview_p.h.
Referenced by doItemsLayout(), QCommonListViewBase::flow(), and prepareItemsLayout().
QSize QListViewPrivate::grid |
Definition at line 388 of file qlistview_p.h.
Referenced by QIconModeViewBase::dataChanged().
QSet<QPersistentModelIndex> QListViewPrivate::hiddenRows |
Definition at line 416 of file qlistview_p.h.
Referenced by QCommonListViewBase::appendHiddenRow(), QCommonListViewBase::hiddenCount(), QCommonListViewBase::removeHiddenRow(), and QListModeViewBase::verticalScrollToValue().
Qt::Alignment QListViewPrivate::itemAlignment |
Definition at line 426 of file qlistview_p.h.
Referenced by QListModeViewBase::indexToListViewItem(), and QListModeViewBase::intersectingSet().
QRect QListViewPrivate::layoutBounds |
Definition at line 410 of file qlistview_p.h.
Referenced by doItemsLayout(), and prepareItemsLayout().
QListView::LayoutMode QListViewPrivate::layoutMode |
Definition at line 393 of file qlistview_p.h.
uint QListViewPrivate::modeProperties |
Definition at line 408 of file qlistview_p.h.
QListView::Movement QListViewPrivate::movement |
Definition at line 391 of file qlistview_p.h.
Referenced by QCommonListViewBase::movement().
QListView::ResizeMode QListViewPrivate::resizeMode |
Definition at line 392 of file qlistview_p.h.
bool QListViewPrivate::showElasticBand |
Definition at line 424 of file qlistview_p.h.
int QListViewPrivate::space |
Definition at line 387 of file qlistview_p.h.
bool QListViewPrivate::uniformItemSizes |
Definition at line 419 of file qlistview_p.h.
Referenced by itemSize(), and QCommonListViewBase::uniformItemSizes().
QListView::ViewMode QListViewPrivate::viewMode |
Definition at line 394 of file qlistview_p.h.
bool QListViewPrivate::wrap |
Definition at line 386 of file qlistview_p.h.