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
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 ,
  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 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 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)
 
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 ()
 
void updateSubFocusItem (QQuickItem *scope, bool focus)
 Clears all sub focus items from scope.
 
bool setFocusIfNeeded (QEvent::Type)
 
Qt::FocusReason lastFocusChangeReason () const
 
void 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.
 
QTransform globalToWindowTransform () const
 Returns a transform that maps points from global space into window space.
 
QTransform windowToGlobalTransform () const
 Returns a transform that maps points from window space into global space.
 
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 ()
 
 QObjectPrivate (int version=QObjectPrivateVersion)
 
virtual ~QObjectPrivate ()
 
void deleteChildren ()
 
void clearBindingStorage ()
 
void checkForIncompatibleLibraryVersion (int version) const
 
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
 
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 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 QQuickAnchorsPrivateanchorPrivate ()
 

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 40 of file qquickpathview_p_p.h.

Member Enumeration Documentation

◆ MovementReason

Enumerator
Other 
SetIndex 
Mouse 

Definition at line 99 of file qquickpathview_p_p.h.

Constructor & Destructor Documentation

◆ QQuickPathViewPrivate()

QQuickPathViewPrivate::QQuickPathViewPrivate ( )

Definition at line 60 of file qquickpathview.cpp.

References QLayoutPolicy::Preferred, and QQuickItemPrivate::setSizePolicy().

+ Here is the call graph for this function:

Member Function Documentation

◆ addVelocitySample()

void QQuickPathViewPrivate::addVelocitySample ( qreal v)

Definition at line 1593 of file qquickpathview.cpp.

References QPODVector< T, Increment >::append(), QPODVector< T, Increment >::count(), qCDebug, QML_FLICK_SAMPLEBUFFER, QPODVector< T, Increment >::remove(), and velocityBuffer.

Referenced by handleMouseMoveEvent().

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

◆ attached()

QQuickPathViewAttached * QQuickPathViewPrivate::attached ( QQuickItem * item)

Definition at line 190 of file qquickpathview.cpp.

References item.

Referenced by createCurrentItem(), itemGeometryChanged(), releaseItem(), setHighlightPosition(), updateCurrent(), and updateItem().

+ Here is the caller graph for this function:

◆ attachedType()

QQmlOpenMetaObjectType * QQuickPathViewPrivate::attachedType ( )

Definition at line 195 of file qquickpathview.cpp.

References attType, and QQmlOpenMetaObjectType::createProperty().

+ Here is the call graph for this function:

◆ calcCurrentIndex()

int QQuickPathViewPrivate::calcCurrentIndex ( )

Definition at line 2305 of file qquickpathview.cpp.

References items, model, modelCount, qAbs(), qRound(), and QList< T >::size().

Referenced by fixOffset(), and updateCurrent().

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

◆ calcVelocity()

qreal QQuickPathViewPrivate::calcVelocity ( ) const

Definition at line 1601 of file qquickpathview.cpp.

References QPODVector< T, Increment >::at(), QPODVector< T, Increment >::count(), i, qCDebug, QML_FLICK_DISCARDSAMPLES, and velocityBuffer.

Referenced by handleMouseReleaseEvent().

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

◆ clear()

void QQuickPathViewPrivate::clear ( )

Definition at line 210 of file qquickpathview.cpp.

References QQmlInstanceModel::cancel(), QList< T >::clear(), QQuickTimeLine::clear(), currentItem, itemCache, items, model, releaseItem(), requestedIndex, and tl.

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 1616 of file qquickpathview.cpp.

References QElapsedTimer::elapsed(), and timer.

Referenced by handleMouseMoveEvent(), handleMousePressEvent(), and handleMouseReleaseEvent().

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

◆ createCurrentItem()

void QQuickPathViewPrivate::createCurrentItem ( )

Definition at line 2319 of file qquickpathview.cpp.

References attached(), currentIndex, currentItem, getItem(), QQmlInstanceModel::indexOf(), item, items, model, modelCount, requestedIndex, QQuickItem::setFocus(), QQuickPathViewAttached::setIsCurrentItem(), and updateItem().

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 287 of file qquickpathview.cpp.

References QQmlComponent::create(), QQmlComponent::creationContext(), QObject::deleteLater(), emit, highlightComponent, highlightItem, item, qmlContext(), qobject_cast< QQuickItem * >(), QQml_setParent_noEvent(), QGraphicsItem::setParentItem(), and QQuickItem::setParentItem().

+ Here is the call graph for this function:

◆ fixOffset()

void QQuickPathViewPrivate::fixOffset ( )

Definition at line 2377 of file qquickpathview.cpp.

References calcCurrentIndex(), currentIndex, haveHighlightRange, highlightRangeMode, items, model, QQuickPathView::NoSnap, Other, QList< T >::size(), snapMode, snapToIndex(), and QQuickPathView::StrictlyEnforceRange.

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 d, and fixOffset().

Referenced by handleMouseReleaseEvent().

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

◆ getItem()

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

Definition at line 96 of file qquickpathview.cpp.

References QQuickItemPrivate::addItemChangeListener(), QQmlIncubator::Asynchronous, QQmlIncubator::AsynchronousIfNested, delegateValidated, QQuickItemPrivate::Destroyed, QQuickItemPrivate::Geometry, QQuickItemPrivate::get(), inRequest, item, model, QQmlInstanceModel::object, qmlobject_cast< QQuickItem * >(), qmlWarning(), QQmlInstanceModel::release(), requestedIndex, requestedZ, QGraphicsItem::setParentItem(), and QQuickItemPrivate::z().

Referenced by createCurrentItem().

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

◆ handleMouseMoveEvent()

void QQuickPathViewPrivate::handleMouseMoveEvent ( QMouseEvent * event)

Definition at line 1681 of file qquickpathview.cpp.

References addVelocitySample(), computeCurrentTime(), QQuickDeliveryAgentPrivate::dragOverThreshold(), elapsed(), emit, interactive, QElapsedTimer::isValid(), lastPosTime, model, modelCount, Mouse, moveReason, moving, pathItems, pointNear(), qAbs(), qFuzzyIsNull(), qMin(), setDragging(), startPc, startPoint, startPos, stealMouse, QGuiApplication::styleHints(), timer, Qt::XAxis, and Qt::YAxis.

+ Here is the call graph for this function:

◆ handleMousePressEvent()

◆ handleMouseReleaseEvent()

◆ init()

void QQuickPathViewPrivate::init ( )

Definition at line 82 of file qquickpathview.cpp.

References QElapsedTimer::invalidate(), QQuickItem::ItemIsFocusScope, Qt::LeftButton, qmlobject_connect, SIGNAL, SLOT, timer, and tl.

+ Here is the call graph for this function:

◆ isInBound()

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

Definition at line 274 of file qquickpathview.cpp.

References mappedRange, position(), and qFuzzyCompare().

+ Here is the call graph for this function:

◆ isValid()

bool QQuickPathViewPrivate::isValid ( ) const
inline

Definition at line 82 of file qquickpathview_p_p.h.

References QQmlInstanceModel::count, QQmlInstanceModel::isValid(), model, and path.

Referenced by regenerate(), setOffset(), and updateHighlight().

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

◆ itemDestroyed()

void QQuickPathViewPrivate::itemDestroyed ( QQuickItem * item)
inlineoverridevirtual

Reimplemented from QQuickItemChangeListener.

Definition at line 57 of file qquickpathview_p_p.h.

References item, itemCache, items, and QList< T >::removeOne().

+ Here is the call graph for this function:

◆ itemGeometryChanged()

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

Reimplemented from QQuickItemChangeListener.

Definition at line 49 of file qquickpathview_p_p.h.

References attached(), highlightItem, item, scheduleLayout(), and QQuickGeometryChange::sizeChange().

+ 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 1552 of file qquickpathview.cpp.

References dist(), i, qMin(), QPointF::x(), and QPointF::y().

Referenced by handleMouseMoveEvent(), and handleMousePressEvent().

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

◆ positionOfIndex()

qreal QQuickPathViewPrivate::positionOfIndex ( qreal index) const

Definition at line 249 of file qquickpathview.cpp.

References haveHighlightRange, highlightRangeMode, highlightRangeStart, mappedRange, model, modelCount, QQuickPathView::NoHighlightRange, QQuickPathView::NoSnap, offset, pathItems, pos, and snapMode.

Referenced by setHighlightPosition().

+ Here is the caller graph for this function:

◆ regenerate()

void QQuickPathViewPrivate::regenerate ( )

Definition at line 424 of file qquickpathview.cpp.

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

+ Here is the call graph for this function:

◆ releaseItem()

void QQuickPathViewPrivate::releaseItem ( QQuickItem * item)

Definition at line 169 of file qquickpathview.cpp.

References attached(), QQmlInstanceModel::Destroyed, QQuickItemPrivate::Destroyed, QQuickItemPrivate::Geometry, QQuickItemPrivate::get(), item, model, qCDebug, QQmlInstanceModel::release(), QQuickItemPrivate::removeItemChangeListener(), QQuickPathViewAttached::setOnPath(), and QGraphicsItem::setParentItem().

Referenced by clear(), and updateCurrent().

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

◆ scheduleLayout()

void QQuickPathViewPrivate::scheduleLayout ( )
inline

Definition at line 63 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 841 of file qquickpathview.cpp.

References o, offsetAdj, and setOffset().

+ Here is the call graph for this function:

◆ setDragging()

void QQuickPathViewPrivate::setDragging ( bool d)

Definition at line 439 of file qquickpathview.cpp.

References d, dragging, and emit.

Referenced by handleMouseMoveEvent(), and handleMouseReleaseEvent().

+ Here is the caller graph for this function:

◆ setHighlightPosition()

void QQuickPathViewPrivate::setHighlightPosition ( qreal pos)

Definition at line 365 of file qquickpathview.cpp.

References attached(), haveHighlightRange, highlightItem, highlightPosition, highlightRangeEnd, highlightRangeMode, highlightRangeStart, highlightUp, mappedRange, modelCount, QQuickPathView::NoHighlightRange, pos, positionOfIndex(), qFuzzyCompare(), setOffset(), QQuickPathViewAttached::setOnPath(), and updateItem().

+ Here is the call graph for this function:

◆ setOffset()

void QQuickPathViewPrivate::setOffset ( qreal offset)

Definition at line 823 of file qquickpathview.cpp.

References emit, isValid(), modelCount, o, offset, qCDebug, and qFuzzyCompare().

Referenced by setAdjustedOffset(), and setHighlightPosition().

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

◆ snapToIndex()

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

Definition at line 2392 of file qquickpathview.cpp.

References highlightMoveDuration, QEasingCurve::InOutQuad, QEasingCurve::InQuad, model, modelCount, QQuickTimeLine::move(), moveDirection, moveOffset, moveReason, QQuickPathView::Negative, offset, offsetAdj, QEasingCurve::OutQuad, pathItems, QQuickPathView::Positive, qAbs(), qFuzzyIsNull(), qMin(), QQuickTimeLine::reset(), QQuickTimeLine::set(), QQuickTimeLineValueProxy< T >::setValue(), QQuickPathView::Shortest, and tl.

Referenced by fixOffset().

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

◆ updateCurrent()

void QQuickPathViewPrivate::updateCurrent ( )

Definition at line 2347 of file qquickpathview.cpp.

References attached(), calcCurrentIndex(), createCurrentItem(), currentIndex, currentItem, emit, haveHighlightRange, highlightRangeMode, model, modelCount, moveReason, releaseItem(), SetIndex, QQuickPathViewAttached::setIsCurrentItem(), and QQuickPathView::StrictlyEnforceRange.

+ Here is the call graph for this function:

◆ updateHighlight()

◆ updateItem()

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

Definition at line 405 of file qquickpathview.cpp.

References attached(), QQuickItemPrivate::get(), item, QQuickPathViewAttached::m_percent, qFuzzyCompare(), qMin(), QQuickPathViewAttached::setOnPath(), QQuickPathViewAttached::setValue(), QGraphicsItem::setX(), QGraphicsItem::setY(), QPointF::x(), and QPointF::y().

Referenced by createCurrentItem(), setHighlightPosition(), and updateHighlight().

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

◆ updateMappedRange()

void QQuickPathViewPrivate::updateMappedRange ( )

Definition at line 234 of file qquickpathview.cpp.

References cacheSize, mappedCache, mappedRange, model, modelCount, pathItems, qMax(), qMin(), and requestedCacheSize.

Referenced by regenerate().

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

Member Data Documentation

◆ attType

QQmlOpenMetaObjectType* QQuickPathViewPrivate::attType

Definition at line 152 of file qquickpathview_p_p.h.

Referenced by attachedType().

◆ autoHighlight

bool QQuickPathViewPrivate::autoHighlight

Definition at line 122 of file qquickpathview_p_p.h.

◆ cacheSize

int QQuickPathViewPrivate::cacheSize

Definition at line 142 of file qquickpathview_p_p.h.

Referenced by updateMappedRange().

◆ currentIndex

int QQuickPathViewPrivate::currentIndex

Definition at line 108 of file qquickpathview_p_p.h.

Referenced by createCurrentItem(), fixOffset(), updateCurrent(), and updateHighlight().

◆ currentItem

QPointer<QQuickItem> QQuickPathViewPrivate::currentItem

Definition at line 109 of file qquickpathview_p_p.h.

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

◆ currentItemOffset

qreal QQuickPathViewPrivate::currentItemOffset

Definition at line 110 of file qquickpathview_p_p.h.

◆ deceleration

qreal QQuickPathViewPrivate::deceleration

Definition at line 135 of file qquickpathview_p_p.h.

Referenced by handleMouseReleaseEvent().

◆ delegateValidated

bool QQuickPathViewPrivate::delegateValidated

Definition at line 129 of file qquickpathview_p_p.h.

Referenced by getItem().

◆ dragging

bool QQuickPathViewPrivate::dragging

Definition at line 127 of file qquickpathview_p_p.h.

Referenced by setDragging().

◆ dragMargin

qreal QQuickPathViewPrivate::dragMargin

Definition at line 134 of file qquickpathview_p_p.h.

Referenced by handleMousePressEvent().

◆ flickDuration

int QQuickPathViewPrivate::flickDuration

Definition at line 139 of file qquickpathview_p_p.h.

Referenced by handleMousePressEvent(), and handleMouseReleaseEvent().

◆ flicking

bool QQuickPathViewPrivate::flicking

Definition at line 126 of file qquickpathview_p_p.h.

Referenced by handleMousePressEvent(), and handleMouseReleaseEvent().

◆ haveHighlightRange

bool QQuickPathViewPrivate::haveHighlightRange

◆ highlightComponent

QQmlComponent* QQuickPathViewPrivate::highlightComponent

Definition at line 153 of file qquickpathview_p_p.h.

Referenced by createHighlight().

◆ highlightItem

QQuickItem* QQuickPathViewPrivate::highlightItem

◆ highlightMoveDuration

int QQuickPathViewPrivate::highlightMoveDuration

Definition at line 160 of file qquickpathview_p_p.h.

Referenced by snapToIndex(), and updateHighlight().

◆ highlightPosition

qreal QQuickPathViewPrivate::highlightPosition

Definition at line 156 of file qquickpathview_p_p.h.

Referenced by setHighlightPosition(), and updateHighlight().

◆ highlightRangeEnd

qreal QQuickPathViewPrivate::highlightRangeEnd

Definition at line 158 of file qquickpathview_p_p.h.

Referenced by setHighlightPosition().

◆ highlightRangeMode

◆ highlightRangeStart

qreal QQuickPathViewPrivate::highlightRangeStart

Definition at line 157 of file qquickpathview_p_p.h.

Referenced by positionOfIndex(), setHighlightPosition(), and updateHighlight().

◆ highlightUp

bool QQuickPathViewPrivate::highlightUp

Definition at line 123 of file qquickpathview_p_p.h.

Referenced by setHighlightPosition(), and updateHighlight().

◆ inRefill

bool QQuickPathViewPrivate::inRefill

Definition at line 130 of file qquickpathview_p_p.h.

◆ inRequest

bool QQuickPathViewPrivate::inRequest

Definition at line 128 of file qquickpathview_p_p.h.

Referenced by getItem().

◆ interactive

bool QQuickPathViewPrivate::interactive

◆ itemCache

QList<QQuickItem *> QQuickPathViewPrivate::itemCache

Definition at line 146 of file qquickpathview_p_p.h.

Referenced by clear(), and itemDestroyed().

◆ items

QList<QQuickItem *> QQuickPathViewPrivate::items

◆ lastPos

QPointF QQuickPathViewPrivate::lastPos

Definition at line 133 of file qquickpathview_p_p.h.

◆ lastPosTime

qint64 QQuickPathViewPrivate::lastPosTime

◆ layoutScheduled

bool QQuickPathViewPrivate::layoutScheduled

Definition at line 124 of file qquickpathview_p_p.h.

Referenced by scheduleLayout().

◆ mappedCache

qreal QQuickPathViewPrivate::mappedCache

Definition at line 117 of file qquickpathview_p_p.h.

Referenced by updateMappedRange().

◆ mappedRange

qreal QQuickPathViewPrivate::mappedRange

◆ maximumFlickVelocity

qreal QQuickPathViewPrivate::maximumFlickVelocity

Definition at line 136 of file qquickpathview_p_p.h.

Referenced by handleMouseReleaseEvent().

◆ model

◆ modelCount

◆ modelVariant

QVariant QQuickPathViewPrivate::modelVariant

Definition at line 148 of file qquickpathview_p_p.h.

◆ moveDirection

QQuickPathView::MovementDirection QQuickPathViewPrivate::moveDirection

Definition at line 151 of file qquickpathview_p_p.h.

Referenced by snapToIndex().

◆ moveHighlight

QQuickTimeLineValueProxy<QQuickPathViewPrivate> QQuickPathViewPrivate::moveHighlight

Definition at line 155 of file qquickpathview_p_p.h.

Referenced by updateHighlight().

◆ movementDirection

QQuickPathView::MovementDirection QQuickPathViewPrivate::movementDirection

Definition at line 150 of file qquickpathview_p_p.h.

◆ moveOffset

QQuickTimeLineValueProxy<QQuickPathViewPrivate> QQuickPathViewPrivate::moveOffset

Definition at line 138 of file qquickpathview_p_p.h.

Referenced by handleMouseReleaseEvent(), and snapToIndex().

◆ moveReason

MovementReason QQuickPathViewPrivate::moveReason

Definition at line 149 of file qquickpathview_p_p.h.

Referenced by handleMouseMoveEvent(), snapToIndex(), and updateCurrent().

◆ moving

bool QQuickPathViewPrivate::moving

Definition at line 125 of file qquickpathview_p_p.h.

Referenced by handleMouseMoveEvent().

◆ offset

qreal QQuickPathViewPrivate::offset

◆ offsetAdj

qreal QQuickPathViewPrivate::offsetAdj

◆ ownModel

bool QQuickPathViewPrivate::ownModel

Definition at line 119 of file qquickpathview_p_p.h.

◆ path

QQuickPath* QQuickPathViewPrivate::path

Definition at line 107 of file qquickpathview_p_p.h.

Referenced by isValid().

◆ pathItems

int QQuickPathViewPrivate::pathItems

◆ requestedCacheSize

int QQuickPathViewPrivate::requestedCacheSize

Definition at line 143 of file qquickpathview_p_p.h.

Referenced by updateMappedRange().

◆ requestedIndex

int QQuickPathViewPrivate::requestedIndex

Definition at line 141 of file qquickpathview_p_p.h.

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

◆ requestedZ

qreal QQuickPathViewPrivate::requestedZ

Definition at line 144 of file qquickpathview_p_p.h.

Referenced by getItem().

◆ snapMode

QQuickPathView::SnapMode QQuickPathViewPrivate::snapMode

Definition at line 163 of file qquickpathview_p_p.h.

Referenced by fixOffset(), handleMouseReleaseEvent(), and positionOfIndex().

◆ startPc

qreal QQuickPathViewPrivate::startPc

Definition at line 111 of file qquickpathview_p_p.h.

Referenced by handleMouseMoveEvent(), and handleMousePressEvent().

◆ startPoint

QPointF QQuickPathViewPrivate::startPoint

Definition at line 112 of file qquickpathview_p_p.h.

Referenced by handleMouseMoveEvent(), and handleMousePressEvent().

◆ startPos

QPointF QQuickPathViewPrivate::startPos

Definition at line 113 of file qquickpathview_p_p.h.

Referenced by handleMouseMoveEvent(), and handleMousePressEvent().

◆ stealMouse

bool QQuickPathViewPrivate::stealMouse

◆ timer

QElapsedTimer QQuickPathViewPrivate::timer

◆ tl

QQuickTimeLine QQuickPathViewPrivate::tl

◆ velocityBuffer

QPODVector<qreal,10> QQuickPathViewPrivate::velocityBuffer

Definition at line 162 of file qquickpathview_p_p.h.

Referenced by addVelocitySample(), calcVelocity(), and handleMousePressEvent().


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