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
QQuickSwipePrivate Class Reference
+ Inheritance diagram for QQuickSwipePrivate:
+ Collaboration diagram for QQuickSwipePrivate:

Public Member Functions

 QQuickSwipePrivate (QQuickSwipeDelegate *control)
 
QQuickItemcreateDelegateItem (QQmlComponent *component)
 
QQuickItemshowRelevantItemForPosition (qreal position)
 
QQuickItemcreateRelevantItemForDistance (qreal distance)
 
void reposition (PositionAnimation animationPolicy)
 
void createLeftItem ()
 
void createBehindItem ()
 
void createRightItem ()
 
void createAndShowLeftItem ()
 
void createAndShowBehindItem ()
 
void createAndShowRightItem ()
 
void warnAboutMixingDelegates ()
 
void warnAboutSettingDelegatesWhileVisible ()
 
bool hasDelegates () const
 
bool isTransitioning () const
 
void beginTransition (qreal position)
 
void finishTransition ()
 
- 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
 

Static Public Member Functions

static QQuickSwipePrivateget (QQuickSwipe *swipe)
 
- 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

QQuickSwipeDelegatecontrol = nullptr
 
qreal positionBeforePress = 0
 
qreal position = 0
 
bool wasComplete = false
 
bool complete = false
 
bool enabled = true
 
bool waitForTransition = false
 
QQuickVelocityCalculator velocityCalculator
 
QQmlComponentleft = nullptr
 
QQmlComponentbehind = nullptr
 
QQmlComponentright = nullptr
 
QQuickItemleftItem = nullptr
 
QQuickItembehindItem = nullptr
 
QQuickItemrightItem = nullptr
 
QQuickTransitiontransition = nullptr
 
QScopedPointer< QQuickSwipeTransitionManagertransitionManager
 
- 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

- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 
using ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData>
 

Detailed Description

Definition at line 101 of file qquickswipedelegate.cpp.

Constructor & Destructor Documentation

◆ QQuickSwipePrivate()

QQuickSwipePrivate::QQuickSwipePrivate ( QQuickSwipeDelegate * control)
inline

Definition at line 106 of file qquickswipedelegate.cpp.

Member Function Documentation

◆ beginTransition()

void QQuickSwipePrivate::beginTransition ( qreal position)

Definition at line 370 of file qquickswipedelegate.cpp.

References finishTransition(), QScopedPointer< T, Cleanup >::reset(), QQuickSwipeTransitionManager::transition(), transition, transitionManager, and waitForTransition.

+ Here is the call graph for this function:

◆ createAndShowBehindItem()

void QQuickSwipePrivate::createAndShowBehindItem ( )

Definition at line 329 of file qquickswipedelegate.cpp.

References behindItem, createBehindItem(), and QQuickItem::setVisible().

Referenced by showRelevantItemForPosition().

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

◆ createAndShowLeftItem()

void QQuickSwipePrivate::createAndShowLeftItem ( )

Definition at line 318 of file qquickswipedelegate.cpp.

References createLeftItem(), leftItem, rightItem, and QQuickItem::setVisible().

Referenced by showRelevantItemForPosition().

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

◆ createAndShowRightItem()

void QQuickSwipePrivate::createAndShowRightItem ( )

Definition at line 337 of file qquickswipedelegate.cpp.

References createRightItem(), leftItem, rightItem, and QQuickItem::setVisible().

Referenced by showRelevantItemForPosition().

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

◆ createBehindItem()

void QQuickSwipePrivate::createBehindItem ( )

Definition at line 298 of file qquickswipedelegate.cpp.

References behind, behindItem, control, createDelegateItem(), QQmlComponent::errors(), and qmlWarning().

Referenced by createAndShowBehindItem(), and createRelevantItemForDistance().

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

◆ createDelegateItem()

QQuickItem * QQuickSwipePrivate::createDelegateItem ( QQmlComponent * component)

Definition at line 184 of file qquickswipedelegate.cpp.

References component(), context, control, item, QJSEngine::JavaScriptOwnership, qmlContext(), qobject_cast< QQuickItem * >(), QJSEngine::setObjectOwnership(), and QGraphicsItem::setParentItem().

Referenced by createBehindItem(), createLeftItem(), and createRightItem().

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

◆ createLeftItem()

void QQuickSwipePrivate::createLeftItem ( )

Definition at line 288 of file qquickswipedelegate.cpp.

References control, createDelegateItem(), leftItem, and qmlWarning().

Referenced by createAndShowLeftItem(), and createRelevantItemForDistance().

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

◆ createRelevantItemForDistance()

QQuickItem * QQuickSwipePrivate::createRelevantItemForDistance ( qreal distance)

Definition at line 225 of file qquickswipedelegate.cpp.

References behind, behindItem, createBehindItem(), createLeftItem(), createRightItem(), leftItem, positionBeforePress, qAbs(), qFuzzyIsNull(), rightItem, and QQuickItem::width.

+ Here is the call graph for this function:

◆ createRightItem()

void QQuickSwipePrivate::createRightItem ( )

Definition at line 308 of file qquickswipedelegate.cpp.

References control, createDelegateItem(), qmlWarning(), and rightItem.

Referenced by createAndShowRightItem(), and createRelevantItemForDistance().

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

◆ finishTransition()

void QQuickSwipePrivate::finishTransition ( )

Definition at line 387 of file qquickswipedelegate.cpp.

References complete, emit, position, qAbs(), qFuzzyCompare(), qFuzzyIsNull(), waitForTransition, and wasComplete.

Referenced by beginTransition().

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

◆ get()

◆ hasDelegates()

bool QQuickSwipePrivate::hasDelegates ( ) const

Definition at line 360 of file qquickswipedelegate.cpp.

References behind.

◆ isTransitioning()

bool QQuickSwipePrivate::isTransitioning ( ) const

Definition at line 365 of file qquickswipedelegate.cpp.

References QQuickTransitionManager::isRunning(), and transitionManager.

+ Here is the call graph for this function:

◆ reposition()

void QQuickSwipePrivate::reposition ( PositionAnimation animationPolicy)

Definition at line 267 of file qquickswipedelegate.cpp.

References QQuickControl::background, QQuickControl::contentItem, control, QQuickControl::leftPadding, position, and showRelevantItemForPosition().

+ Here is the call graph for this function:

◆ showRelevantItemForPosition()

QQuickItem * QQuickSwipePrivate::showRelevantItemForPosition ( qreal position)

Definition at line 202 of file qquickswipedelegate.cpp.

References behind, behindItem, createAndShowBehindItem(), createAndShowLeftItem(), createAndShowRightItem(), leftItem, position, qFuzzyIsNull(), and rightItem.

Referenced by reposition().

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

◆ warnAboutMixingDelegates()

void QQuickSwipePrivate::warnAboutMixingDelegates ( )

Definition at line 350 of file qquickswipedelegate.cpp.

References control, and qmlWarning().

+ Here is the call graph for this function:

◆ warnAboutSettingDelegatesWhileVisible()

void QQuickSwipePrivate::warnAboutSettingDelegatesWhileVisible ( )

Definition at line 355 of file qquickswipedelegate.cpp.

References control, and qmlWarning().

+ Here is the call graph for this function:

Member Data Documentation

◆ behind

◆ behindItem

◆ complete

bool QQuickSwipePrivate::complete = false

Definition at line 138 of file qquickswipedelegate.cpp.

Referenced by finishTransition().

◆ control

◆ enabled

bool QQuickSwipePrivate::enabled = true

Definition at line 139 of file qquickswipedelegate.cpp.

◆ left

QQmlComponent* QQuickSwipePrivate::left = nullptr

Definition at line 142 of file qquickswipedelegate.cpp.

◆ leftItem

◆ position

qreal QQuickSwipePrivate::position = 0

◆ positionBeforePress

qreal QQuickSwipePrivate::positionBeforePress = 0

Definition at line 133 of file qquickswipedelegate.cpp.

Referenced by createRelevantItemForDistance().

◆ right

QQmlComponent* QQuickSwipePrivate::right = nullptr

Definition at line 144 of file qquickswipedelegate.cpp.

◆ rightItem

◆ transition

QQuickTransition* QQuickSwipePrivate::transition = nullptr

Definition at line 148 of file qquickswipedelegate.cpp.

Referenced by beginTransition().

◆ transitionManager

QScopedPointer<QQuickSwipeTransitionManager> QQuickSwipePrivate::transitionManager

Definition at line 149 of file qquickswipedelegate.cpp.

Referenced by beginTransition(), and isTransitioning().

◆ velocityCalculator

QQuickVelocityCalculator QQuickSwipePrivate::velocityCalculator

Definition at line 141 of file qquickswipedelegate.cpp.

◆ waitForTransition

bool QQuickSwipePrivate::waitForTransition = false

Definition at line 140 of file qquickswipedelegate.cpp.

Referenced by beginTransition(), and finishTransition().

◆ wasComplete

bool QQuickSwipePrivate::wasComplete = false

Definition at line 137 of file qquickswipedelegate.cpp.

Referenced by finishTransition().


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