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
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 ()
 
 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 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() [1/2]

QQuickSwipePrivate::QQuickSwipePrivate ( QQuickSwipeDelegate * control)
inline

Definition at line 106 of file qquickswipedelegate.cpp.

◆ QQuickSwipePrivate() [2/2]

QQuickSwipePrivate::QQuickSwipePrivate ( QQuickSwipeDelegate * control)
inline

Definition at line 106 of file qquickswipedelegate.cpp.

Member Function Documentation

◆ beginTransition() [1/2]

void QQuickSwipePrivate::beginTransition ( qreal position)

Definition at line 370 of file qquickswipedelegate.cpp.

References finishTransition(), and waitForTransition.

+ Here is the call graph for this function:

◆ beginTransition() [2/2]

void QQuickSwipePrivate::beginTransition ( qreal position)

◆ createAndShowBehindItem() [1/2]

void QQuickSwipePrivate::createAndShowBehindItem ( )

Definition at line 329 of file qquickswipedelegate.cpp.

References createBehindItem().

Referenced by showRelevantItemForPosition().

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

◆ createAndShowBehindItem() [2/2]

void QQuickSwipePrivate::createAndShowBehindItem ( )

◆ createAndShowLeftItem() [1/2]

void QQuickSwipePrivate::createAndShowLeftItem ( )

Definition at line 318 of file qquickswipedelegate.cpp.

References createLeftItem().

Referenced by showRelevantItemForPosition().

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

◆ createAndShowLeftItem() [2/2]

void QQuickSwipePrivate::createAndShowLeftItem ( )

◆ createAndShowRightItem() [1/2]

void QQuickSwipePrivate::createAndShowRightItem ( )

Definition at line 337 of file qquickswipedelegate.cpp.

References createRightItem().

Referenced by showRelevantItemForPosition().

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

◆ createAndShowRightItem() [2/2]

void QQuickSwipePrivate::createAndShowRightItem ( )

◆ createBehindItem() [1/2]

void QQuickSwipePrivate::createBehindItem ( )

Definition at line 298 of file qquickswipedelegate.cpp.

Referenced by createAndShowBehindItem(), and createRelevantItemForDistance().

+ Here is the caller graph for this function:

◆ createBehindItem() [2/2]

void QQuickSwipePrivate::createBehindItem ( )

◆ createDelegateItem() [1/2]

QQuickItem * QQuickSwipePrivate::createDelegateItem ( QQmlComponent * component)

Definition at line 184 of file qquickswipedelegate.cpp.

◆ createDelegateItem() [2/2]

QQuickItem * QQuickSwipePrivate::createDelegateItem ( QQmlComponent * component)

◆ createLeftItem() [1/2]

void QQuickSwipePrivate::createLeftItem ( )

Definition at line 288 of file qquickswipedelegate.cpp.

Referenced by createAndShowLeftItem(), and createRelevantItemForDistance().

+ Here is the caller graph for this function:

◆ createLeftItem() [2/2]

void QQuickSwipePrivate::createLeftItem ( )

◆ createRelevantItemForDistance() [1/2]

QQuickItem * QQuickSwipePrivate::createRelevantItemForDistance ( qreal distance)

Definition at line 225 of file qquickswipedelegate.cpp.

References createBehindItem(), createLeftItem(), and createRightItem().

+ Here is the call graph for this function:

◆ createRelevantItemForDistance() [2/2]

QQuickItem * QQuickSwipePrivate::createRelevantItemForDistance ( qreal distance)

◆ createRightItem() [1/2]

void QQuickSwipePrivate::createRightItem ( )

Definition at line 308 of file qquickswipedelegate.cpp.

Referenced by createAndShowRightItem(), and createRelevantItemForDistance().

+ Here is the caller graph for this function:

◆ createRightItem() [2/2]

void QQuickSwipePrivate::createRightItem ( )

◆ finishTransition() [1/2]

void QQuickSwipePrivate::finishTransition ( )

Definition at line 387 of file qquickswipedelegate.cpp.

References complete, waitForTransition, and wasComplete.

Referenced by beginTransition().

+ Here is the caller graph for this function:

◆ finishTransition() [2/2]

void QQuickSwipePrivate::finishTransition ( )

◆ get() [1/2]

QQuickSwipePrivate * QQuickSwipePrivate::get ( QQuickSwipe * swipe)
static

Definition at line 179 of file qquickswipedelegate.cpp.

◆ get() [2/2]

static QQuickSwipePrivate * QQuickSwipePrivate::get ( QQuickSwipe * swipe)
static

◆ hasDelegates() [1/2]

bool QQuickSwipePrivate::hasDelegates ( ) const

Definition at line 360 of file qquickswipedelegate.cpp.

◆ hasDelegates() [2/2]

bool QQuickSwipePrivate::hasDelegates ( ) const

◆ isTransitioning() [1/2]

bool QQuickSwipePrivate::isTransitioning ( ) const

Definition at line 365 of file qquickswipedelegate.cpp.

Referenced by QQuickSwipeDelegatePrivate::handleMouseMoveEvent(), and QQuickSwipeDelegatePrivate::handleMouseReleaseEvent().

+ Here is the caller graph for this function:

◆ isTransitioning() [2/2]

bool QQuickSwipePrivate::isTransitioning ( ) const

◆ reposition() [1/2]

void QQuickSwipePrivate::reposition ( PositionAnimation animationPolicy)

Definition at line 267 of file qquickswipedelegate.cpp.

References QT_BEGIN_NAMESPACE::AnimatePosition.

◆ reposition() [2/2]

void QQuickSwipePrivate::reposition ( PositionAnimation animationPolicy)

◆ showRelevantItemForPosition() [1/2]

QQuickItem * QQuickSwipePrivate::showRelevantItemForPosition ( qreal position)

Definition at line 202 of file qquickswipedelegate.cpp.

References createAndShowBehindItem(), createAndShowLeftItem(), and createAndShowRightItem().

+ Here is the call graph for this function:

◆ showRelevantItemForPosition() [2/2]

QQuickItem * QQuickSwipePrivate::showRelevantItemForPosition ( qreal position)

◆ warnAboutMixingDelegates() [1/2]

void QQuickSwipePrivate::warnAboutMixingDelegates ( )

Definition at line 350 of file qquickswipedelegate.cpp.

◆ warnAboutMixingDelegates() [2/2]

void QQuickSwipePrivate::warnAboutMixingDelegates ( )

◆ warnAboutSettingDelegatesWhileVisible() [1/2]

void QQuickSwipePrivate::warnAboutSettingDelegatesWhileVisible ( )

Definition at line 355 of file qquickswipedelegate.cpp.

◆ warnAboutSettingDelegatesWhileVisible() [2/2]

void QQuickSwipePrivate::warnAboutSettingDelegatesWhileVisible ( )

Member Data Documentation

◆ behind

QQmlComponent * QQuickSwipePrivate::behind = nullptr

Definition at line 143 of file qquickswipedelegate.cpp.

◆ behindItem

QQuickItem * QQuickSwipePrivate::behindItem = nullptr

Definition at line 146 of file qquickswipedelegate.cpp.

◆ complete

bool QQuickSwipePrivate::complete = false

◆ control

QQuickSwipeDelegate * QQuickSwipePrivate::control = nullptr

Definition at line 130 of file qquickswipedelegate.cpp.

◆ enabled

bool QQuickSwipePrivate::enabled = true

◆ left

QQmlComponent * QQuickSwipePrivate::left = nullptr

◆ leftItem

QQuickItem * QQuickSwipePrivate::leftItem = nullptr

Definition at line 145 of file qquickswipedelegate.cpp.

◆ position

qreal QQuickSwipePrivate::position = 0

Definition at line 134 of file qquickswipedelegate.cpp.

◆ positionBeforePress

qreal QQuickSwipePrivate::positionBeforePress = 0

Definition at line 133 of file qquickswipedelegate.cpp.

◆ right

QQmlComponent * QQuickSwipePrivate::right = nullptr

◆ rightItem

QQuickItem * QQuickSwipePrivate::rightItem = nullptr

Definition at line 147 of file qquickswipedelegate.cpp.

◆ transition

QQuickTransition * QQuickSwipePrivate::transition = nullptr

Definition at line 148 of file qquickswipedelegate.cpp.

◆ transitionManager

QScopedPointer< QQuickSwipeTransitionManager > QQuickSwipePrivate::transitionManager

Definition at line 149 of file qquickswipedelegate.cpp.

◆ 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


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