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

#include <qquickpathview_p_p.h>

Inheritance diagram for QQuickPathViewPrivate:
Collaboration diagram for QQuickPathViewPrivate:

Public Types

enum  MovementReason { Other , SetIndex , Mouse }
Public Types inherited from QQuickItemPrivate
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 ,
  Scale = 0x1000 , Matrix = 0x2000 , 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
}
Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
using ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData>
Public Types inherited from QSafeQuickItemChangeListener< QQuickPathViewPrivate >
using InDestructorTest
using WasDeletedTest

Public Member Functions

 QQuickPathViewPrivate ()
void init ()
void itemGeometryChanged (QQuickItem *item, QQuickGeometryChange change, const QRectF &) override
void itemDestroyed (QQuickItem *item) override
void scheduleLayout ()
QQuickItemgetItem (int modelIndex, qreal z=0, bool async=false)
void releaseCurrentItem ()
void releaseItem (QQuickItem *item)
QQuickPathViewAttachedattached (QQuickItem *item)
QQmlOpenMetaObjectTypeattachedType ()
void clear ()
void updateMappedRange ()
qreal positionOfIndex (qreal index) const
bool isInBound (qreal position, qreal lower, qreal upper, bool emptyRangeCheck=true) const
void createHighlight ()
void updateHighlight ()
void setHighlightPosition (qreal pos)
bool isValid () const
void handleMousePressEvent (QMouseEvent *event)
void handleMouseMoveEvent (QMouseEvent *event)
void handleMouseReleaseEvent (QMouseEvent *)
int calcCurrentIndex ()
void createCurrentItem ()
void updateCurrent ()
void fixOffset ()
void setOffset (qreal offset)
void setAdjustedOffset (qreal offset)
void regenerate ()
void updateItem (QQuickItem *, qreal)
void snapToIndex (int index, MovementReason reason)
QPointF pointNear (const QPointF &point, qreal *nearPercent=0) const
void addVelocitySample (qreal v)
qreal calcVelocity () const
qint64 computeCurrentTime (QInputEvent *event) const
void setDragging (bool d)
Public Member Functions inherited from QQuickItemPrivate
 QQuickItemPrivate ()
 ~QQuickItemPrivate () override
void init (QQuickItem *parent)
QQmlListProperty< QObjectdata ()
QQmlListProperty< QObjectresources ()
QQmlListProperty< QQuickItemchildren ()
QQmlListProperty< QQuickItemvisibleChildren ()
QQmlListProperty< QQuickStatestates ()
QQmlListProperty< QQuickTransitiontransitions ()
QString state () const
void setState (const QString &)
QQuickAnchorLine left () const
QQuickAnchorLine right () const
QQuickAnchorLine horizontalCenter () const
QQuickAnchorLine top () const
QQuickAnchorLine bottom () const
QQuickAnchorLine verticalCenter () const
QQuickAnchorLine baseline () const
void localizedTouchEvent (const QTouchEvent *event, bool isFiltering, QMutableTouchEvent *localized)
bool hasPointerHandlers () const
bool hasEnabledHoverHandlers () const
virtual void addPointerHandler (QQuickPointerHandler *h)
virtual void removePointerHandler (QQuickPointerHandler *h)
QObjectsetContextMenu (QObject *menu)
void _q_resourceObjectDeleted (QObject *)
quint64 _q_createJSWrapper (QQmlV4ExecutionEnginePtr engine)
template<typename Fn, typename ... Args>
void notifyChangeListeners (QQuickItemPrivate::ChangeTypes changeTypes, Fn &&function, Args &&...args)
virtual void registerAsContainmentMask (QQuickItem *, bool)
QQuickAnchorsanchors () const
 \qmlpropertygroup QtQuick::Item::anchors \qmlproperty AnchorLine QtQuick::Item::anchors.top \qmlproperty AnchorLine QtQuick::Item::anchors.bottom \qmlproperty AnchorLine QtQuick::Item::anchors.left \qmlproperty AnchorLine QtQuick::Item::anchors.right \qmlproperty AnchorLine QtQuick::Item::anchors.horizontalCenter \qmlproperty AnchorLine QtQuick::Item::anchors.verticalCenter \qmlproperty AnchorLine QtQuick::Item::anchors.baseline
Qt::MouseButtons acceptedMouseButtons () const
void addItemChangeListener (QQuickItemChangeListener *listener, ChangeTypes types)
void updateOrAddItemChangeListener (QQuickItemChangeListener *listener, ChangeTypes types)
void removeItemChangeListener (QQuickItemChangeListener *, ChangeTypes types)
void updateOrAddGeometryChangeListener (QQuickItemChangeListener *listener, QQuickGeometryChange types)
void updateOrRemoveGeometryChangeListener (QQuickItemChangeListener *listener, QQuickGeometryChange types)
QQuickStateGroup_states ()
QQuickItem::TransformOrigin origin () const
QString dirtyToString () const
void dirty (DirtyType)
void addToDirtyList ()
void removeFromDirtyList ()
void setCulled (bool)
QSGContextsceneGraphContext () const
QSGRenderContextsceneGraphRenderContext () const
QList< QQuickItem * > paintOrderChildItems () const
void addChild (QQuickItem *)
void removeChild (QQuickItem *)
void siblingOrderChanged ()
void markSortedChildrenDirty (QQuickItem *child)
void refWindow (QQuickWindow *)
void derefWindow ()
qreal effectiveDevicePixelRatio () const
void updateSubFocusItem (QQuickItem *scope, bool focus)
 Clears all sub focus items from scope.
bool setFocusIfNeeded (QEvent::Type)
Qt::FocusReason lastFocusChangeReason () const
virtual bool setLastFocusChangeReason (Qt::FocusReason reason)
QTransform windowToItemTransform () const
 Returns a transform that maps points from window space into item space.
QTransform itemToWindowTransform () const
 Returns a transform that maps points from item space into window space.
void itemToParentTransform (QTransform *) const
 Modifies t with this item's local transform relative to its parent.
void setX (qreal x)
void xChanged ()
 Q_OBJECT_COMPAT_PROPERTY (QQuickItemPrivate, qreal, x, &QQuickItemPrivate::setX, &QQuickItemPrivate::xChanged)
void setY (qreal y)
void yChanged ()
 Q_OBJECT_COMPAT_PROPERTY (QQuickItemPrivate, qreal, y, &QQuickItemPrivate::setY, &QQuickItemPrivate::yChanged)
void setWidth (qreal width)
void widthChanged ()
 Q_OBJECT_COMPAT_PROPERTY (QQuickItemPrivate, qreal, width, &QQuickItemPrivate::setWidth, &QQuickItemPrivate::widthChanged)
void setHeight (qreal height)
void heightChanged ()
 Q_OBJECT_COMPAT_PROPERTY (QQuickItemPrivate, qreal, height, &QQuickItemPrivate::setHeight, &QQuickItemPrivate::heightChanged)
bool widthValid () const
bool heightValid () const
qreal z () const
qreal scale () const
qreal rotation () const
qreal opacity () const
void setAccessible ()
virtual qreal getImplicitWidth () const
virtual qreal getImplicitHeight () const
virtual void implicitWidthChanged ()
virtual void implicitHeightChanged ()
void setImplicitAntialiasing (bool antialiasing)
void resolveLayoutMirror ()
void setImplicitLayoutMirror (bool mirror, bool inherit)
void setLayoutMirror (bool mirror)
bool isMirrored () const
void emitChildrenRectChanged (const QRectF &rect)
QPointF computeTransformOrigin () const
virtual bool transformChanged (QQuickItem *transformedItem)
QPointF adjustedPosForTransform (const QPointF &centroid, const QPointF &startPos, const QVector2D &activeTranslatation, qreal startScale, qreal activeScale, qreal startRotation, qreal activeRotation)
QQuickDeliveryAgentdeliveryAgent ()
QQuickDeliveryAgentPrivatedeliveryAgentPrivate ()
QQuickDeliveryAgentensureSubsceneDeliveryAgent ()
void deliverKeyEvent (QKeyEvent *)
bool filterKeyEvent (QKeyEvent *, bool post)
void deliverShortcutOverrideEvent (QKeyEvent *)
void deliverPointerEvent (QEvent *)
bool anyPointerHandlerWants (const QPointerEvent *event, const QEventPoint &point) const
virtual bool handlePointerEvent (QPointerEvent *, bool avoidGrabbers=false)
virtual void setVisible (bool visible)
bool isTransparentForPositioner () const
void setTransparentForPositioner (bool trans)
bool calcEffectiveVisible () const
bool setEffectiveVisibleRecur (bool)
bool calcEffectiveEnable () const
void setEffectiveEnableRecur (QQuickItem *scope, bool)
QSGTransformNodeitemNode ()
QSGNodechildContainerNode ()
QSGOpacityNodeopacityNode () const
QQuickDefaultClipNodeclipNode () const
QSGRootNoderootNode () const
virtual QSGTransformNodecreateTransformNode ()
void refFromEffectItem (bool hide)
void recursiveRefFromEffectItem (int refs)
void derefFromEffectItem (bool unhide)
void itemChange (QQuickItem::ItemChange, const QQuickItem::ItemChangeData &)
void enableSubtreeChangeNotificationsForParentHierachy ()
virtual void mirrorChange ()
void setHasCursorInChild (bool hasCursor)
void setHasHoverInChild (bool hasHover)
virtual void updatePolish ()
virtual void dumpItemTree (int indent) const
QLayoutPolicy sizePolicy () const
void setSizePolicy (const QLayoutPolicy::Policy &horizontalPolicy, const QLayoutPolicy::Policy &verticalPolicy)
Public Member Functions inherited from QObjectPrivate
void ensureExtraData ()
void setObjectNameWithoutBindings (const QString &name)
 QObjectPrivate (decltype(QObjectPrivateVersion) version=QObjectPrivateVersion)
virtual ~QObjectPrivate ()
void deleteChildren ()
void clearBindingStorage ()
void setParent_helper (QObject *)
void moveToThread_helper ()
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData, QBindingStatus *status)
QObjectList receiverList (const char *signal) const
void ensureConnectionData ()
void addConnection (int signal, Connection *c)
int signalIndex (const char *signalName, const QMetaObject **meta=nullptr) const
bool isSignalConnected (uint signalIdx, bool checkDeclarative=true) const
bool maybeSignalConnected (uint signalIndex) const
bool isDeclarativeSignalConnected (uint signalIdx) const
void connectNotify (const QMetaMethod &signal)
void disconnectNotify (const QMetaMethod &signal)
void reinitBindingStorageAfterThreadMove ()
virtual std::string flagsForDumping () const
virtual void writeToDebugStream (QDebug &) const
QtPrivate::QPropertyAdaptorSlotObjectgetPropertyAdaptorSlotObject (const QMetaProperty &property)
Public Member Functions inherited from QObjectData
 QObjectData ()=default
virtual ~QObjectData ()=0
const QMetaObjectdynamicMetaObject () const
Public Member Functions inherited from QQuickPaletteProviderPrivateBase< QQuickItem, QQuickItemPrivate >
virtual ~QQuickPaletteProviderPrivateBase ()=default
virtual QQuickPalettepalette () const
virtual void setPalette (QQuickPalette *p)
virtual void resetPalette ()
virtual bool providesPalette () const
QPalette defaultPalette () const override
QPalette parentPalette (const QPalette &fallbackPalette) const override
void inheritPalette (const QPalette &parentPalette)
virtual void updateChildrenPalettes (const QPalette &parentPalette)
Public Member Functions inherited from QQuickAbstractPaletteProvider
virtual ~QQuickAbstractPaletteProvider ()=default
Public Member Functions inherited from QSafeQuickItemChangeListener< QQuickPathViewPrivate >
 ~QSafeQuickItemChangeListener () override
bool baseDeleted (const QObject *caller) const override
QString debugName () const override
Public Member Functions inherited from QQuickItemChangeListener
virtual ~QQuickItemChangeListener ()
virtual void itemSiblingOrderChanged (QQuickItem *)
virtual void itemVisibilityChanged (QQuickItem *)
virtual void itemEnabledChanged (QQuickItem *)
virtual void itemOpacityChanged (QQuickItem *)
virtual void itemChildAdded (QQuickItem *, QQuickItem *)
virtual void itemChildRemoved (QQuickItem *, QQuickItem *)
virtual void itemParentChanged (QQuickItem *, QQuickItem *)
virtual void itemRotationChanged (QQuickItem *)
virtual void itemImplicitWidthChanged (QQuickItem *)
virtual void itemImplicitHeightChanged (QQuickItem *)
virtual void itemFocusChanged (QQuickItem *, Qt::FocusReason)
virtual void itemScaleChanged (QQuickItem *)
virtual void itemTransformChanged (QQuickItem *, QQuickItem *)
virtual QQuickAnchorsPrivateanchorPrivate ()
virtual void addSourceItem (QQuickItem *)
virtual void removeSourceItem (QQuickItem *)

Static Public Member Functions

static void fixOffsetCallback (void *)
Static Public Member Functions inherited from QQuickItemPrivate
static QQuickItemPrivateget (QQuickItem *item)
static const QQuickItemPrivateget (const QQuickItem *item)
static void data_append (QQmlListProperty< QObject > *, QObject *)
static qsizetype data_count (QQmlListProperty< QObject > *)
 \qmlproperty list<QtObject> QtQuick::Item::data \qmldefault
static QObjectdata_at (QQmlListProperty< QObject > *, qsizetype)
static void data_clear (QQmlListProperty< QObject > *)
static void data_removeLast (QQmlListProperty< QObject > *)
static QObjectresources_at (QQmlListProperty< QObject > *, qsizetype)
static void resources_append (QQmlListProperty< QObject > *, QObject *)
static qsizetype resources_count (QQmlListProperty< QObject > *)
static void resources_clear (QQmlListProperty< QObject > *)
static void resources_removeLast (QQmlListProperty< QObject > *)
static void children_append (QQmlListProperty< QQuickItem > *, QQuickItem *)
static qsizetype children_count (QQmlListProperty< QQuickItem > *)
static QQuickItemchildren_at (QQmlListProperty< QQuickItem > *, qsizetype)
static void children_clear (QQmlListProperty< QQuickItem > *)
static void children_removeLast (QQmlListProperty< QQuickItem > *)
static qsizetype visibleChildren_count (QQmlListProperty< QQuickItem > *prop)
static QQuickItemvisibleChildren_at (QQmlListProperty< QQuickItem > *prop, qsizetype index)
static qsizetype transform_count (QQmlListProperty< QQuickTransform > *list)
static void transform_append (QQmlListProperty< QQuickTransform > *list, QQuickTransform *)
static QQuickTransformtransform_at (QQmlListProperty< QQuickTransform > *list, qsizetype)
static void transform_clear (QQmlListProperty< QQuickTransform > *list)
static bool focusNextPrev (QQuickItem *item, bool forward)
 QQuickItemPrivate::focusNextPrev focuses the next/prev item in the tab-focus-chain.
static QQuickItemnextTabChildItem (const QQuickItem *item, int start)
static QQuickItemprevTabChildItem (const QQuickItem *item, int start)
static QQuickItemnextPrevItemInTabFocusChain (QQuickItem *item, bool forward, bool wrap=true)
static bool canAcceptTabFocus (QQuickItem *item)
Static Public Member Functions inherited from QObjectPrivate
static bool removeConnection (Connection *c)
static QObjectPrivateget (QObject *o)
static const QObjectPrivateget (const QObject *o)
template<typename Func1, typename Func2>
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection)
template<typename Func1, typename Func2>
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot)
static QMetaObject::Connection connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject)
static QMetaObject::Connection connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type)
static QMetaObject::Connection connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type)
static bool disconnect (const QObject *sender, int signal_index, void **slot)
static bool disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot)

Public Attributes

QQuickPathpath
int currentIndex
QPointer< QQuickItemcurrentItem
qreal currentItemOffset
qreal startPc
QPointF startPoint
QPointF startPos
qreal offset
qreal offsetAdj
qreal mappedRange
qreal mappedCache
bool stealMouse: 1
bool ownModel: 1
bool interactive: 1
bool haveHighlightRange: 1
bool autoHighlight: 1
bool highlightUp: 1
bool layoutScheduled: 1
bool moving: 1
bool flicking: 1
bool dragging: 1
bool inRequest: 1
bool delegateValidated: 1
bool inRefill: 1
QElapsedTimer timer
qint64 lastPosTime
QPointF lastPos
qreal dragMargin
qreal deceleration
qreal maximumFlickVelocity
QQuickTimeLine tl
QQuickTimeLineValueProxy< QQuickPathViewPrivatemoveOffset
int flickDuration
int pathItems
int requestedIndex
int cacheSize
int requestedCacheSize
qreal requestedZ
QList< QQuickItem * > items
QList< QQuickItem * > itemCache
QPointer< QQmlInstanceModelmodel
QVariant modelVariant
MovementReason moveReason
QQuickPathView::MovementDirection movementDirection
QQuickPathView::MovementDirection moveDirection
QQmlOpenMetaObjectTypeattType
QQmlComponenthighlightComponent
QQuickItemhighlightItem
QQuickTimeLineValueProxy< QQuickPathViewPrivatemoveHighlight
qreal highlightPosition
qreal highlightRangeStart
qreal highlightRangeEnd
QQuickPathView::HighlightRangeMode highlightRangeMode
int highlightMoveDuration
int modelCount
QPODVector< qreal, 10 > velocityBuffer
QQuickPathView::SnapMode snapMode
Public Attributes inherited from QQuickItemPrivate
QLazilyAllocated< ExtraData, ExtraDataTags > extra
QQuickAnchors_anchors
QVector< QQuickItemPrivate::ChangeListenerchangeListeners
QQuickStateGroup_stateGroup
quint32 flags:7
quint32 widthValidFlag:1
quint32 heightValidFlag:1
quint32 componentComplete:1
quint32 keepMouse:1
quint32 keepTouch:1
quint32 hoverEnabled:1
quint32 smooth:1
quint32 antialiasing:1
quint32 focus:1
quint32 activeFocus:1
quint32 notifiedFocus:1
quint32 notifiedActiveFocus:1
quint32 filtersChildMouseEvents:1
quint32 explicitVisible:1
quint32 effectiveVisible:1
quint32 explicitEnable:1
quint32 effectiveEnable:1
quint32 polishScheduled:1
quint32 inheritedLayoutMirror:1
quint32 effectiveLayoutMirror:1
quint32 isMirrorImplicit:1
quint32 inheritMirrorFromParent:1
quint32 inheritMirrorFromItem:1
quint32 isAccessible:1
quint32 culled:1
quint32 hasCursor:1
quint32 subtreeCursorEnabled:1
quint32 subtreeHoverEnabled:1
quint32 activeFocusOnTab:1
quint32 implicitAntialiasing:1
quint32 antialiasingValid:1
quint32 isTabFence:1
quint32 replayingPressEvent:1
quint32 touchEnabled:1
quint32 hasCursorHandler:1
quint32 maybeHasSubsceneDeliveryAgent:1
quint32 subtreeTransformChangedEnabled:1
quint32 inDestructor:1
quint32 focusReason:4
quint32 focusPolicy:4
quint32 dirtyAttributes
QQuickItemnextDirtyItem
QQuickItem ** prevDirtyItem
QQuickWindowwindow
int windowRefCount
QQuickItemparentItem
QList< QQuickItem * > childItems
QList< QQuickItem * > * sortedChildItems
QPointer< QQuickItemsubFocusItem
qreal implicitWidth
qreal implicitHeight
qreal baselineOffset
QList< QQuickTransform * > transforms
QSGTransformNodeitemNodeInstance
QSGNodepaintNode
QLayoutPolicy szPolicy
Public Attributes inherited from QObjectPrivate
ExtraDataextraData
QAtomicPointer< QThreadDatathreadData
QAtomicPointer< ConnectionDataconnections
union { 
   QObject *   currentChildBeingDeleted 
   QAbstractDeclarativeData *   declarativeData 
}; 
QAtomicPointer< QtSharedPointer::ExternalRefCountDatasharedRefcount
Public Attributes inherited from QObjectData
QObjectq_ptr
QObjectparent
QObjectList children
uint isWidget: 1
uint blockSig: 1
uint wasDeleted: 1
uint isDeletingChildren: 1
uint sendChildEvents: 1
uint receiveChildEvents: 1
uint isWindow: 1
uint deleteLaterCalled: 1
uint isQuickItem: 1
uint willBeWidget: 1
uint wasWidget: 1
uint receiveParentEvents: 1
uint unused: 20
QAtomicInt postedEvents
QDynamicMetaObjectDatametaObject
QBindingStorage bindingStorage

Additional Inherited Members

Protected Member Functions inherited from QQuickPaletteProviderPrivateBase< QQuickItem, QQuickItemPrivate >
void setCurrentColorGroup ()

Detailed Description

Definition at line 41 of file qquickpathview_p_p.h.

Member Enumeration Documentation

◆ MovementReason

Enumerator
Other 
SetIndex 
Mouse 

Definition at line 106 of file qquickpathview_p_p.h.

Constructor & Destructor Documentation

◆ QQuickPathViewPrivate()

Member Function Documentation

◆ addVelocitySample()

void QQuickPathViewPrivate::addVelocitySample ( qreal v)

Definition at line 1594 of file qquickpathview.cpp.

◆ attached()

QQuickPathViewAttached * QQuickPathViewPrivate::attached ( QQuickItem * item)

Definition at line 195 of file qquickpathview.cpp.

Referenced by itemGeometryChanged(), releaseItem(), and updateItem().

Here is the caller graph for this function:

◆ attachedType()

QQmlOpenMetaObjectType * QQuickPathViewPrivate::attachedType ( )

Definition at line 200 of file qquickpathview.cpp.

References attType.

◆ calcCurrentIndex()

int QQuickPathViewPrivate::calcCurrentIndex ( )

Definition at line 2305 of file qquickpathview.cpp.

References modelCount.

Referenced by fixOffset(), and updateCurrent().

Here is the caller graph for this function:

◆ calcVelocity()

qreal QQuickPathViewPrivate::calcVelocity ( ) const

Definition at line 1602 of file qquickpathview.cpp.

◆ clear()

void QQuickPathViewPrivate::clear ( )

Definition at line 215 of file qquickpathview.cpp.

References releaseCurrentItem(), and requestedIndex.

Referenced by regenerate().

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

◆ computeCurrentTime()

qint64 QQuickPathViewPrivate::computeCurrentTime ( QInputEvent * event) const

Definition at line 1617 of file qquickpathview.cpp.

◆ createCurrentItem()

void QQuickPathViewPrivate::createCurrentItem ( )

Definition at line 2319 of file qquickpathview.cpp.

References currentIndex, modelCount, requestedIndex, and QQuickPathViewAttached::setIsCurrentItem().

Referenced by updateCurrent().

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

◆ createHighlight()

void QQuickPathViewPrivate::createHighlight ( )

Definition at line 289 of file qquickpathview.cpp.

References highlightComponent, and highlightItem.

◆ fixOffset()

void QQuickPathViewPrivate::fixOffset ( )

Definition at line 2377 of file qquickpathview.cpp.

References calcCurrentIndex(), Other, and snapToIndex().

Referenced by fixOffsetCallback(), and handleMouseReleaseEvent().

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

◆ fixOffsetCallback()

void QQuickPathViewPrivate::fixOffsetCallback ( void * d)
static

Definition at line 2372 of file qquickpathview.cpp.

References fixOffset().

Here is the call graph for this function:

◆ getItem()

QQuickItem * QQuickPathViewPrivate::getItem ( int modelIndex,
qreal z = 0,
bool async = false )

Definition at line 101 of file qquickpathview.cpp.

References delegateValidated, inRequest, and requestedIndex.

◆ handleMouseMoveEvent()

void QQuickPathViewPrivate::handleMouseMoveEvent ( QMouseEvent * event)

Definition at line 1682 of file qquickpathview.cpp.

References modelCount, Mouse, moveReason, moving, pathItems, setDragging(), and stealMouse.

Here is the call graph for this function:

◆ handleMousePressEvent()

void QQuickPathViewPrivate::handleMousePressEvent ( QMouseEvent * event)

Definition at line 1635 of file qquickpathview.cpp.

References stealMouse.

◆ handleMouseReleaseEvent()

void QQuickPathViewPrivate::handleMouseReleaseEvent ( QMouseEvent * event)

Definition at line 1745 of file qquickpathview.cpp.

References fixOffset(), flicking, setDragging(), and stealMouse.

Here is the call graph for this function:

◆ init()

void QQuickPathViewPrivate::init ( )

Definition at line 87 of file qquickpathview.cpp.

◆ isInBound()

bool QQuickPathViewPrivate::isInBound ( qreal position,
qreal lower,
qreal upper,
bool emptyRangeCheck = true ) const

Definition at line 276 of file qquickpathview.cpp.

◆ isValid()

bool QQuickPathViewPrivate::isValid ( ) const
inline

Definition at line 89 of file qquickpathview_p_p.h.

Referenced by regenerate().

Here is the caller graph for this function:

◆ itemDestroyed()

void QQuickPathViewPrivate::itemDestroyed ( QQuickItem * item)
inlineoverridevirtual

Reimplemented from QQuickItemChangeListener.

Definition at line 59 of file qquickpathview_p_p.h.

◆ itemGeometryChanged()

void QQuickPathViewPrivate::itemGeometryChanged ( QQuickItem * item,
QQuickGeometryChange change,
const QRectF &  )
inlineoverridevirtual

Reimplemented from QQuickItemChangeListener.

Definition at line 51 of file qquickpathview_p_p.h.

References attached(), highlightItem, and scheduleLayout().

Here is the call graph for this function:

◆ pointNear()

QPointF QQuickPathViewPrivate::pointNear ( const QPointF & point,
qreal * nearPercent = 0 ) const

Returns a point in the path, that has the closest distance from point. A value in the range 0-1 will be written to nearPercent if given, which represents where on the path the point is closest to. 0 means the very beginning of the path, and 1 means the very end.

Definition at line 1553 of file qquickpathview.cpp.

◆ positionOfIndex()

qreal QQuickPathViewPrivate::positionOfIndex ( qreal index) const

Definition at line 251 of file qquickpathview.cpp.

References modelCount, and pathItems.

◆ regenerate()

void QQuickPathViewPrivate::regenerate ( )

Definition at line 426 of file qquickpathview.cpp.

References clear(), isValid(), and updateMappedRange().

Here is the call graph for this function:

◆ releaseCurrentItem()

void QQuickPathViewPrivate::releaseCurrentItem ( )
inline

Definition at line 74 of file qquickpathview_p_p.h.

References releaseItem().

Referenced by clear(), and updateCurrent().

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

◆ releaseItem()

void QQuickPathViewPrivate::releaseItem ( QQuickItem * item)

Definition at line 174 of file qquickpathview.cpp.

References attached(), and QQuickPathViewAttached::setOnPath().

Referenced by releaseCurrentItem().

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

◆ scheduleLayout()

void QQuickPathViewPrivate::scheduleLayout ( )
inline

Definition at line 65 of file qquickpathview_p_p.h.

References layoutScheduled.

Referenced by itemGeometryChanged().

Here is the caller graph for this function:

◆ setAdjustedOffset()

void QQuickPathViewPrivate::setAdjustedOffset ( qreal offset)

Definition at line 842 of file qquickpathview.cpp.

◆ setDragging()

void QQuickPathViewPrivate::setDragging ( bool d)

Definition at line 441 of file qquickpathview.cpp.

References dragging.

Referenced by handleMouseMoveEvent(), and handleMouseReleaseEvent().

Here is the caller graph for this function:

◆ setHighlightPosition()

void QQuickPathViewPrivate::setHighlightPosition ( qreal pos)

Definition at line 367 of file qquickpathview.cpp.

◆ setOffset()

void QQuickPathViewPrivate::setOffset ( qreal offset)

Definition at line 824 of file qquickpathview.cpp.

◆ snapToIndex()

void QQuickPathViewPrivate::snapToIndex ( int index,
MovementReason reason )

Definition at line 2392 of file qquickpathview.cpp.

References highlightMoveDuration, modelCount, moveReason, and pathItems.

Referenced by fixOffset().

Here is the caller graph for this function:

◆ updateCurrent()

void QQuickPathViewPrivate::updateCurrent ( )

Definition at line 2347 of file qquickpathview.cpp.

References calcCurrentIndex(), createCurrentItem(), currentIndex, moveReason, releaseCurrentItem(), SetIndex, and QQuickPathViewAttached::setIsCurrentItem().

Here is the call graph for this function:

◆ updateHighlight()

void QQuickPathViewPrivate::updateHighlight ( )

Definition at line 330 of file qquickpathview.cpp.

References highlightItem, highlightMoveDuration, and highlightUp.

◆ updateItem()

void QQuickPathViewPrivate::updateItem ( QQuickItem * item,
qreal percent )

Definition at line 407 of file qquickpathview.cpp.

References attached(), and QQuickPathViewAttached::setOnPath().

Here is the call graph for this function:

◆ updateMappedRange()

void QQuickPathViewPrivate::updateMappedRange ( )

Definition at line 236 of file qquickpathview.cpp.

References cacheSize, modelCount, pathItems, and requestedCacheSize.

Referenced by regenerate().

Here is the caller graph for this function:

Member Data Documentation

◆ attType

QQmlOpenMetaObjectType* QQuickPathViewPrivate::attType

Definition at line 159 of file qquickpathview_p_p.h.

Referenced by QQuickPathViewPrivate(), and attachedType().

◆ autoHighlight

bool QQuickPathViewPrivate::autoHighlight

Definition at line 129 of file qquickpathview_p_p.h.

Referenced by QQuickPathViewPrivate().

◆ cacheSize

int QQuickPathViewPrivate::cacheSize

Definition at line 149 of file qquickpathview_p_p.h.

Referenced by QQuickPathViewPrivate(), and updateMappedRange().

◆ currentIndex

int QQuickPathViewPrivate::currentIndex

Definition at line 115 of file qquickpathview_p_p.h.

Referenced by QQuickPathViewPrivate(), createCurrentItem(), and updateCurrent().

◆ currentItem

QPointer<QQuickItem> QQuickPathViewPrivate::currentItem

Definition at line 116 of file qquickpathview_p_p.h.

◆ currentItemOffset

qreal QQuickPathViewPrivate::currentItemOffset

Definition at line 117 of file qquickpathview_p_p.h.

◆ deceleration

qreal QQuickPathViewPrivate::deceleration

Definition at line 142 of file qquickpathview_p_p.h.

◆ delegateValidated

bool QQuickPathViewPrivate::delegateValidated

Definition at line 136 of file qquickpathview_p_p.h.

Referenced by QQuickPathViewPrivate(), and getItem().

◆ dragging

bool QQuickPathViewPrivate::dragging

Definition at line 134 of file qquickpathview_p_p.h.

Referenced by QQuickPathViewPrivate(), and setDragging().

◆ dragMargin

qreal QQuickPathViewPrivate::dragMargin

Definition at line 141 of file qquickpathview_p_p.h.

◆ flickDuration

int QQuickPathViewPrivate::flickDuration

Definition at line 146 of file qquickpathview_p_p.h.

Referenced by QQuickPathViewPrivate().

◆ flicking

bool QQuickPathViewPrivate::flicking

Definition at line 133 of file qquickpathview_p_p.h.

Referenced by QQuickPathViewPrivate(), and handleMouseReleaseEvent().

◆ haveHighlightRange

bool QQuickPathViewPrivate::haveHighlightRange

Definition at line 128 of file qquickpathview_p_p.h.

Referenced by QQuickPathViewPrivate().

◆ highlightComponent

QQmlComponent* QQuickPathViewPrivate::highlightComponent

Definition at line 160 of file qquickpathview_p_p.h.

Referenced by QQuickPathViewPrivate(), and createHighlight().

◆ highlightItem

QQuickItem* QQuickPathViewPrivate::highlightItem

◆ highlightMoveDuration

int QQuickPathViewPrivate::highlightMoveDuration

Definition at line 167 of file qquickpathview_p_p.h.

Referenced by QQuickPathViewPrivate(), snapToIndex(), and updateHighlight().

◆ highlightPosition

qreal QQuickPathViewPrivate::highlightPosition

Definition at line 163 of file qquickpathview_p_p.h.

◆ highlightRangeEnd

qreal QQuickPathViewPrivate::highlightRangeEnd

Definition at line 165 of file qquickpathview_p_p.h.

◆ highlightRangeMode

QQuickPathView::HighlightRangeMode QQuickPathViewPrivate::highlightRangeMode

Definition at line 166 of file qquickpathview_p_p.h.

◆ highlightRangeStart

qreal QQuickPathViewPrivate::highlightRangeStart

Definition at line 164 of file qquickpathview_p_p.h.

◆ highlightUp

bool QQuickPathViewPrivate::highlightUp

Definition at line 130 of file qquickpathview_p_p.h.

Referenced by QQuickPathViewPrivate(), and updateHighlight().

◆ inRefill

bool QQuickPathViewPrivate::inRefill

Definition at line 137 of file qquickpathview_p_p.h.

Referenced by QQuickPathViewPrivate().

◆ inRequest

bool QQuickPathViewPrivate::inRequest

Definition at line 135 of file qquickpathview_p_p.h.

Referenced by QQuickPathViewPrivate(), and getItem().

◆ interactive

bool QQuickPathViewPrivate::interactive

Definition at line 127 of file qquickpathview_p_p.h.

Referenced by QQuickPathViewPrivate().

◆ itemCache

QList<QQuickItem *> QQuickPathViewPrivate::itemCache

Definition at line 153 of file qquickpathview_p_p.h.

◆ items

QList<QQuickItem *> QQuickPathViewPrivate::items

Definition at line 152 of file qquickpathview_p_p.h.

◆ lastPos

QPointF QQuickPathViewPrivate::lastPos

Definition at line 140 of file qquickpathview_p_p.h.

◆ lastPosTime

qint64 QQuickPathViewPrivate::lastPosTime

Definition at line 139 of file qquickpathview_p_p.h.

◆ layoutScheduled

bool QQuickPathViewPrivate::layoutScheduled

Definition at line 131 of file qquickpathview_p_p.h.

Referenced by QQuickPathViewPrivate(), and scheduleLayout().

◆ mappedCache

qreal QQuickPathViewPrivate::mappedCache

Definition at line 124 of file qquickpathview_p_p.h.

◆ mappedRange

qreal QQuickPathViewPrivate::mappedRange

Definition at line 123 of file qquickpathview_p_p.h.

◆ maximumFlickVelocity

qreal QQuickPathViewPrivate::maximumFlickVelocity

Definition at line 143 of file qquickpathview_p_p.h.

◆ model

QPointer<QQmlInstanceModel> QQuickPathViewPrivate::model

Definition at line 154 of file qquickpathview_p_p.h.

◆ modelCount

◆ modelVariant

QVariant QQuickPathViewPrivate::modelVariant

Definition at line 155 of file qquickpathview_p_p.h.

◆ moveDirection

QQuickPathView::MovementDirection QQuickPathViewPrivate::moveDirection

Definition at line 158 of file qquickpathview_p_p.h.

◆ moveHighlight

QQuickTimeLineValueProxy<QQuickPathViewPrivate> QQuickPathViewPrivate::moveHighlight

Definition at line 162 of file qquickpathview_p_p.h.

◆ movementDirection

QQuickPathView::MovementDirection QQuickPathViewPrivate::movementDirection

Definition at line 157 of file qquickpathview_p_p.h.

◆ moveOffset

QQuickTimeLineValueProxy<QQuickPathViewPrivate> QQuickPathViewPrivate::moveOffset

Definition at line 145 of file qquickpathview_p_p.h.

◆ moveReason

MovementReason QQuickPathViewPrivate::moveReason

◆ moving

bool QQuickPathViewPrivate::moving

Definition at line 132 of file qquickpathview_p_p.h.

Referenced by QQuickPathViewPrivate(), and handleMouseMoveEvent().

◆ offset

◆ offsetAdj

qreal QQuickPathViewPrivate::offsetAdj

Definition at line 122 of file qquickpathview_p_p.h.

◆ ownModel

bool QQuickPathViewPrivate::ownModel

Definition at line 126 of file qquickpathview_p_p.h.

Referenced by QQuickPathViewPrivate().

◆ path

QQuickPath* QQuickPathViewPrivate::path

Definition at line 114 of file qquickpathview_p_p.h.

◆ pathItems

int QQuickPathViewPrivate::pathItems

◆ requestedCacheSize

int QQuickPathViewPrivate::requestedCacheSize

Definition at line 150 of file qquickpathview_p_p.h.

Referenced by QQuickPathViewPrivate(), and updateMappedRange().

◆ requestedIndex

int QQuickPathViewPrivate::requestedIndex

Definition at line 148 of file qquickpathview_p_p.h.

Referenced by QQuickPathViewPrivate(), clear(), createCurrentItem(), and getItem().

◆ requestedZ

qreal QQuickPathViewPrivate::requestedZ

Definition at line 151 of file qquickpathview_p_p.h.

◆ snapMode

QQuickPathView::SnapMode QQuickPathViewPrivate::snapMode

Definition at line 170 of file qquickpathview_p_p.h.

◆ startPc

qreal QQuickPathViewPrivate::startPc

Definition at line 118 of file qquickpathview_p_p.h.

◆ startPoint

QPointF QQuickPathViewPrivate::startPoint

Definition at line 119 of file qquickpathview_p_p.h.

◆ startPos

QPointF QQuickPathViewPrivate::startPos

Definition at line 120 of file qquickpathview_p_p.h.

◆ stealMouse

bool QQuickPathViewPrivate::stealMouse

◆ timer

QElapsedTimer QQuickPathViewPrivate::timer

Definition at line 138 of file qquickpathview_p_p.h.

◆ tl

QQuickTimeLine QQuickPathViewPrivate::tl

Definition at line 144 of file qquickpathview_p_p.h.

◆ velocityBuffer

QPODVector<qreal,10> QQuickPathViewPrivate::velocityBuffer

Definition at line 169 of file qquickpathview_p_p.h.


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