![]() |
Qt 6.x
The Qt SDK
|
#include <qquicktumbler_p_p.h>
Public Types | |
enum | ContentItemType { NoContentItem , UnsupportedContentItemType , PathViewContentItem , ListViewContentItem } |
enum | PropertyChangeReason { UserChange , InternalChange } |
![]() | |
enum class | UnhideVisibility { Show , Hide } |
![]() | |
enum | ChangeType { Geometry = 0x01 , SiblingOrder = 0x02 , Visibility = 0x04 , Opacity = 0x08 , Destroyed = 0x10 , Parent = 0x20 , Children = 0x40 , Rotation = 0x80 , ImplicitWidth = 0x100 , ImplicitHeight = 0x200 , Enabled = 0x400 , Focus = 0x800 , AllChanges = 0xFFFFFFFF } |
enum | ExtraDataTag { NoTag = 0x1 , LeftMouseButtonAccepted = 0x2 } |
enum | DirtyType { TransformOrigin = 0x00000001 , Transform = 0x00000002 , BasicTransform = 0x00000004 , Position = 0x00000008 , Size = 0x00000010 , ZValue = 0x00000020 , Content = 0x00000040 , Smooth = 0x00000080 , OpacityValue = 0x00000100 , ChildrenChanged = 0x00000200 , ChildrenStackingChanged = 0x00000400 , ParentChanged = 0x00000800 , Clip = 0x00001000 , Window = 0x00002000 , EffectReference = 0x00008000 , Visible = 0x00010000 , HideReference = 0x00020000 , Antialiasing = 0x00040000 , TransformUpdateMask , ComplexTransformUpdateMask = Transform | Window , ContentUpdateMask = Size | Content | Smooth | Window | Antialiasing , ChildrenUpdateMask = ChildrenChanged | ChildrenStackingChanged | EffectReference | Window } |
![]() | |
typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
using | ConnectionDataPointer = QExplicitlySharedDataPointer< ConnectionData > |
Additional Inherited Members | |
![]() | |
static const ChangeTypes | ImplicitSizeChanges = QQuickItemPrivate::ImplicitWidth | QQuickItemPrivate::ImplicitHeight | QQuickItemPrivate::Destroyed |
Abstract base type providing functionality common to all controls. | |
![]() | |
void | setCurrentColorGroup () |
Definition at line 23 of file qquicktumbler_p_p.h.
Enumerator | |
---|---|
NoContentItem | |
UnsupportedContentItemType | |
PathViewContentItem | |
ListViewContentItem |
Definition at line 28 of file qquicktumbler_p_p.h.
Enumerator | |
---|---|
UserChange | |
InternalChange |
Definition at line 78 of file qquicktumbler_p_p.h.
void QQuickTumblerPrivate::_q_onViewContentYChanged | ( | ) |
Definition at line 219 of file qquicktumbler.cpp.
References calculateDisplacements(), QObject::property(), QVariant::toReal(), view, and viewContentY.
Referenced by disconnectFromView(), and setupViewData().
void QQuickTumblerPrivate::_q_onViewCountChanged | ( | ) |
Definition at line 183 of file qquicktumbler.cpp.
References currentIndex, ignoreSignals, pendingCurrentIndex, QObject::property(), qCDebug, setCount(), setCurrentIndex(), setPendingCurrentIndex(), QVariant::toInt(), and view.
Referenced by disconnectFromView(), and setupViewData().
void QQuickTumblerPrivate::_q_onViewCurrentIndexChanged | ( | ) |
Definition at line 156 of file qquicktumbler.cpp.
References currentIndex, currentIndexSetDuringModelChange, emit, ignoreCurrentIndexChanges, QObject::property(), qCDebug, QStringLiteral, QVariant::toInt(), QVariant::toString(), and view.
Referenced by disconnectFromView(), and setupViewData().
void QQuickTumblerPrivate::_q_onViewOffsetChanged | ( | ) |
Definition at line 213 of file qquicktumbler.cpp.
References calculateDisplacements(), QObject::property(), QVariant::toReal(), view, and viewOffset.
Referenced by disconnectFromView(), and setupViewData().
void QQuickTumblerPrivate::_q_updateItemHeights | ( | ) |
Definition at line 130 of file qquicktumbler.cpp.
References ignoreSignals, items, and viewContentItemChildItems().
Referenced by itemChildAdded(), and itemChildRemoved().
void QQuickTumblerPrivate::_q_updateItemWidths | ( | ) |
Definition at line 144 of file qquicktumbler.cpp.
References ignoreSignals, items, and viewContentItemChildItems().
Referenced by itemChildAdded(), and itemChildRemoved().
void QQuickTumblerPrivate::beginSetModel | ( | ) |
Definition at line 796 of file qquicktumbler.cpp.
References modelBeingSet.
void QQuickTumblerPrivate::calculateDisplacements | ( | ) |
Definition at line 225 of file qquicktumbler.cpp.
References QQuickTumblerAttachedPrivate::calculateDisplacement(), QQuickTumblerAttachedPrivate::get(), items, and viewContentItemChildItems().
Referenced by _q_onViewContentYChanged(), _q_onViewOffsetChanged(), itemGeometryChanged(), and setupViewData().
|
overridevirtual |
Reimplemented from QQuickControlPrivate.
Definition at line 254 of file qquicktumbler.cpp.
References QQuickTheme::palette(), and QQuickTheme::Tumbler.
QQuickItem * QQuickTumblerPrivate::determineViewType | ( | QQuickItem * | contentItem | ) |
Definition at line 71 of file qquicktumbler.cpp.
References QQuickItem::childItems(), QQuickItemPrivate::childItems, QQuickControlPrivate::contentItem, determineViewType(), QObject::inherits(), item, ListViewContentItem, PathViewContentItem, resetViewData(), UnsupportedContentItemType, view, viewContentItem, viewContentItemType, viewContentY, and viewOffset.
Referenced by determineViewType(), and setupViewData().
void QQuickTumblerPrivate::disconnectFromView | ( | ) |
Definition at line 551 of file qquicktumbler.cpp.
References _q_onViewContentYChanged(), _q_onViewCountChanged(), _q_onViewCurrentIndexChanged(), _q_onViewOffsetChanged(), QQuickItemPrivate::Children, QObject::disconnect(), QQuickItemPrivate::Geometry, QQuickItemPrivate::get(), PathViewContentItem, QQuickItemPrivate::removeItemChangeListener(), resetViewData(), SIGNAL, SLOT, view, viewContentItem, and viewContentItemType.
Referenced by setWrap().
void QQuickTumblerPrivate::endSetModel | ( | ) |
Definition at line 801 of file qquicktumbler.cpp.
References modelBeingSet, and setWrapBasedOnCount().
|
static |
Definition at line 125 of file qquicktumbler.cpp.
Referenced by QQuickTumblerAttached::QQuickTumblerAttached(), and QQuickTumblerAttachedPrivate::calculateDisplacement().
|
overridevirtual |
Reimplemented from QQuickItemChangeListener.
Definition at line 235 of file qquicktumbler.cpp.
References _q_updateItemHeights(), and _q_updateItemWidths().
|
overridevirtual |
Reimplemented from QQuickItemChangeListener.
Definition at line 241 of file qquicktumbler.cpp.
References _q_updateItemHeights(), and _q_updateItemWidths().
|
overridevirtual |
Reimplemented from QQuickControlPrivate.
Definition at line 247 of file qquicktumbler.cpp.
References calculateDisplacements(), item, QQuickControlPrivate::itemGeometryChanged(), and QQuickGeometryChange::sizeChange().
|
static |
Definition at line 658 of file qquicktumbler.cpp.
References QStringLiteral, and UserChange.
Referenced by setCurrentIndex().
void QQuickTumblerPrivate::resetViewData | ( | ) |
Definition at line 106 of file qquicktumbler.cpp.
References ListViewContentItem, NoContentItem, PathViewContentItem, view, viewContentItem, viewContentItemType, viewContentY, and viewOffset.
Referenced by determineViewType(), and disconnectFromView().
void QQuickTumblerPrivate::setCount | ( | int | newCount | ) |
Definition at line 730 of file qquicktumbler.cpp.
References count, emit, qCDebug, and setWrapBasedOnCount().
Referenced by _q_onViewCountChanged().
void QQuickTumblerPrivate::setCurrentIndex | ( | int | newCurrentIndex, |
QQuickTumblerPrivate::PropertyChangeReason | changeReason = InternalChange |
||
) |
Definition at line 664 of file qquicktumbler.cpp.
References currentIndex, emit, ignoreCurrentIndexChanges, ignoreSignals, modelBeingSet, QObject::property(), propertyChangeReasonToString(), qCDebug, setPendingCurrentIndex(), QObject::setProperty(), QVariant::toInt(), UserChange, and view.
Referenced by _q_onViewCountChanged(), and setWrap().
void QQuickTumblerPrivate::setPendingCurrentIndex | ( | int | index | ) |
Definition at line 652 of file qquicktumbler.cpp.
References pendingCurrentIndex, and qCDebug.
Referenced by _q_onViewCountChanged(), setCurrentIndex(), and syncCurrentIndex().
void QQuickTumblerPrivate::setupViewData | ( | QQuickItem * | newControlContentItem | ) |
Definition at line 578 of file qquicktumbler.cpp.
References _q_onViewContentYChanged(), _q_onViewCountChanged(), _q_onViewCurrentIndexChanged(), _q_onViewOffsetChanged(), QQuickItemPrivate::addItemChangeListener(), calculateDisplacements(), QQuickItemPrivate::Children, QObject::connect(), determineViewType(), QQuickItemPrivate::Geometry, QQuickItemPrivate::get(), NoContentItem, PathViewContentItem, SIGNAL, SLOT, syncCurrentIndex(), UnsupportedContentItemType, view, viewContentItem, viewContentItemType, and warnAboutIncorrectContentItem().
Referenced by QQuickTumblerAttached::QQuickTumblerAttached(), and setWrap().
void QQuickTumblerPrivate::setWrap | ( | bool | shouldWrap, |
bool | isExplicit | ||
) |
Definition at line 753 of file qquicktumbler.cpp.
References QQuickControlPrivate::contentItem, currentIndex, disconnectFromView(), emit, explicitWrap, ignoreCurrentIndexChanges, qCDebug, setCurrentIndex(), setupViewData(), and wrap.
Referenced by setWrapBasedOnCount().
void QQuickTumblerPrivate::setWrapBasedOnCount | ( | ) |
Definition at line 745 of file qquicktumbler.cpp.
References explicitWrap, modelBeingSet, setWrap(), and visibleItemCount.
Referenced by endSetModel(), and setCount().
void QQuickTumblerPrivate::syncCurrentIndex | ( | ) |
Definition at line 623 of file qquicktumbler.cpp.
References currentIndex, ignoreCurrentIndexChanges, pendingCurrentIndex, QObject::property(), setPendingCurrentIndex(), QObject::setProperty(), QVariant::toInt(), and view.
Referenced by setupViewData().
QList< QQuickItem * > QQuickTumblerPrivate::viewContentItemChildItems | ( | ) | const |
Definition at line 117 of file qquicktumbler.cpp.
References QQuickItem::childItems(), and viewContentItem.
Referenced by _q_updateItemHeights(), _q_updateItemWidths(), and calculateDisplacements().
void QQuickTumblerPrivate::warnAboutIncorrectContentItem | ( | ) |
Definition at line 617 of file qquicktumbler.cpp.
References qmlWarning().
Referenced by setupViewData().
union { ... } QQuickTumblerPrivate |
int QQuickTumblerPrivate::count = 0 |
Definition at line 60 of file qquicktumbler_p_p.h.
Referenced by setCount().
int QQuickTumblerPrivate::currentIndex = -1 |
Definition at line 57 of file qquicktumbler_p_p.h.
Referenced by _q_onViewCountChanged(), _q_onViewCurrentIndexChanged(), setCurrentIndex(), setWrap(), and syncCurrentIndex().
bool QQuickTumblerPrivate::currentIndexSetDuringModelChange = false |
Definition at line 49 of file qquicktumbler_p_p.h.
Referenced by _q_onViewCurrentIndexChanged().
QQmlComponent* QQuickTumblerPrivate::delegate = nullptr |
Definition at line 44 of file qquicktumbler_p_p.h.
bool QQuickTumblerPrivate::explicitWrap = false |
Definition at line 47 of file qquicktumbler_p_p.h.
Referenced by setWrap(), and setWrapBasedOnCount().
bool QQuickTumblerPrivate::ignoreCurrentIndexChanges = false |
Definition at line 59 of file qquicktumbler_p_p.h.
Referenced by _q_onViewCurrentIndexChanged(), setCurrentIndex(), setWrap(), and syncCurrentIndex().
bool QQuickTumblerPrivate::ignoreSignals = false |
Definition at line 61 of file qquicktumbler_p_p.h.
Referenced by _q_onViewCountChanged(), _q_updateItemHeights(), _q_updateItemWidths(), and setCurrentIndex().
QVariant QQuickTumblerPrivate::model |
Definition at line 43 of file qquicktumbler_p_p.h.
bool QQuickTumblerPrivate::modelBeingSet = false |
Definition at line 48 of file qquicktumbler_p_p.h.
Referenced by beginSetModel(), endSetModel(), setCurrentIndex(), and setWrapBasedOnCount().
int QQuickTumblerPrivate::pendingCurrentIndex = -1 |
Definition at line 58 of file qquicktumbler_p_p.h.
Referenced by _q_onViewCountChanged(), setPendingCurrentIndex(), and syncCurrentIndex().
QQuickItem* QQuickTumblerPrivate::view = nullptr |
Definition at line 50 of file qquicktumbler_p_p.h.
Referenced by _q_onViewContentYChanged(), _q_onViewCountChanged(), _q_onViewCurrentIndexChanged(), _q_onViewOffsetChanged(), QQuickTumblerAttachedPrivate::calculateDisplacement(), determineViewType(), disconnectFromView(), resetViewData(), setCurrentIndex(), setupViewData(), and syncCurrentIndex().
QQuickItem* QQuickTumblerPrivate::viewContentItem = nullptr |
Definition at line 51 of file qquicktumbler_p_p.h.
Referenced by QQuickTumblerAttached::QQuickTumblerAttached(), QQuickTumblerAttachedPrivate::calculateDisplacement(), determineViewType(), disconnectFromView(), resetViewData(), setupViewData(), and viewContentItemChildItems().
ContentItemType QQuickTumblerPrivate::viewContentItemType = UnsupportedContentItemType |
Definition at line 52 of file qquicktumbler_p_p.h.
Referenced by QQuickTumblerAttachedPrivate::calculateDisplacement(), determineViewType(), disconnectFromView(), resetViewData(), and setupViewData().
qreal QQuickTumblerPrivate::viewContentY |
Definition at line 55 of file qquicktumbler_p_p.h.
Referenced by _q_onViewContentYChanged(), QQuickTumblerAttachedPrivate::calculateDisplacement(), determineViewType(), and resetViewData().
qreal QQuickTumblerPrivate::viewOffset |
Definition at line 54 of file qquicktumbler_p_p.h.
Referenced by _q_onViewOffsetChanged(), QQuickTumblerAttachedPrivate::calculateDisplacement(), determineViewType(), and resetViewData().
int QQuickTumblerPrivate::visibleItemCount = 5 |
Definition at line 45 of file qquicktumbler_p_p.h.
Referenced by setWrapBasedOnCount().
bool QQuickTumblerPrivate::wrap = true |
Definition at line 46 of file qquicktumbler_p_p.h.
Referenced by setWrap().