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

#include <qquickdrawer_p_p.h>

+ Inheritance diagram for QQuickDrawerPrivate:
+ Collaboration diagram for QQuickDrawerPrivate:

Public Member Functions

qreal offsetAt (const QPointF &point) const
 
qreal positionAt (const QPointF &point) const
 
QQuickPopupPositionergetPositioner () override
 
void showDimmer () override
 
void hideDimmer () override
 
void resizeDimmer () override
 
bool startDrag (QEvent *event)
 
bool grabMouse (QQuickItem *item, QMouseEvent *event)
 
bool blockInput (QQuickItem *item, const QPointF &point) const override
 
bool handlePress (QQuickItem *item, const QPointF &point, ulong timestamp) override
 
bool handleMove (QQuickItem *item, const QPointF &point, ulong timestamp) override
 
bool handleRelease (QQuickItem *item, const QPointF &point, ulong timestamp) override
 
void handleUngrab () override
 
bool prepareEnterTransition () override
 
bool prepareExitTransition () override
 
bool setEdge (Qt::Edge edge)
 
Qt::Edge effectiveEdge () const
 
bool isWithinDragMargin (const QPointF &point) const
 
- Public Member Functions inherited from QQuickPopupPrivate
 QQuickPopupPrivate ()
 
QQmlListProperty< QObjectcontentData ()
 \qmlproperty list<QtObject> QtQuick.Controls::Popup::contentData \qmldefault
 
QQmlListProperty< QQuickItemcontentChildren ()
 \qmlproperty list<Item> QtQuick.Controls::Popup::contentChildren
 
void init ()
 
void closeOrReject ()
 
bool tryClose (const QPointF &pos, QQuickPopup::ClosePolicy flags)
 
bool contains (const QPointF &scenePos) const
 
bool handleMouseEvent (QQuickItem *item, QMouseEvent *event)
 
bool handleHoverEvent (QQuickItem *item, QHoverEvent *event)
 
void reposition ()
 
void createOverlay ()
 
void destroyDimmer ()
 
void toggleOverlay ()
 
void updateContentPalettes (const QPalette &parentPalette)
 
virtual void finalizeEnterTransition ()
 
virtual void finalizeExitTransition ()
 
virtual void opened ()
 
QMarginsF getMargins () const
 
void setTopMargin (qreal value, bool reset=false)
 
void setLeftMargin (qreal value, bool reset=false)
 
void setRightMargin (qreal value, bool reset=false)
 
void setBottomMargin (qreal value, bool reset=false)
 
QQuickPopupAnchorsgetAnchors ()
 
void setWindow (QQuickWindow *window)
 
void itemDestroyed (QQuickItem *item) override
 
QPalette defaultPalette () const override
 
- 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 QQuickItemChangeListener
virtual ~QQuickItemChangeListener ()
 
virtual void itemGeometryChanged (QQuickItem *, QQuickGeometryChange, const QRectF &)
 
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 ()
 
- Public Member Functions inherited from QQuickPaletteProviderPrivateBase< QQuickPopup, QQuickPopupPrivate >
virtual ~QQuickPaletteProviderPrivateBase ()=default
 
virtual QQuickPalettepalette () const
 
virtual void setPalette (QQuickPalette *p)
 
virtual void resetPalette ()
 
virtual bool providesPalette () const
 
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
 

Static Public Member Functions

static QQuickDrawerPrivateget (QQuickDrawer *drawer)
 
- Static Public Member Functions inherited from QQuickPopupPrivate
static QQuickPopupPrivateget (QQuickPopup *popup)
 
- 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

Qt::Edge edge = Qt::LeftEdge
 
qreal offset = 0
 
qreal position = 0
 
qreal dragMargin = 0
 
QQuickVelocityCalculator velocityCalculator
 
bool delayedEnterTransition = false
 
- Public Attributes inherited from QQuickPopupPrivate
bool focus = false
 
bool modal = false
 
bool dim = false
 
bool hasDim = false
 
bool visible = false
 
bool complete = true
 
bool positioning = false
 
bool hasWidth = false
 
bool hasHeight = false
 
bool hasTopMargin = false
 
bool hasLeftMargin = false
 
bool hasRightMargin = false
 
bool hasBottomMargin = false
 
bool hasZ = false
 
bool allowVerticalFlip = false
 
bool allowHorizontalFlip = false
 
bool allowVerticalMove = true
 
bool allowHorizontalMove = true
 
bool allowVerticalResize = true
 
bool allowHorizontalResize = true
 
bool hadActiveFocusBeforeExitTransition = false
 
bool interactive = true
 
bool hasClosePolicy = false
 
bool outsidePressed = false
 
bool outsideParentPressed = false
 
bool inDestructor = false
 
bool relaxEdgeConstraint = false
 
int touchId = -1
 
qreal x = 0
 
qreal y = 0
 
qreal effectiveX = 0
 
qreal effectiveY = 0
 
qreal margins = -1
 
qreal topMargin = 0
 
qreal leftMargin = 0
 
qreal rightMargin = 0
 
qreal bottomMargin = 0
 
QPointF pressPoint
 
TransitionState transitionState = NoTransition
 
QQuickPopup::ClosePolicy closePolicy = DefaultClosePolicy
 
QQuickItemparentItem = nullptr
 
QQuickItemdimmer = nullptr
 
QPointer< QQuickWindowwindow
 
QQuickTransitionenter = nullptr
 
QQuickTransitionexit = nullptr
 
QQuickPopupItempopupItem = nullptr
 
QQuickPopupPositionerpositioner = nullptr
 
QList< QQuickStateActionenterActions
 
QList< QQuickStateActionexitActions
 
QQuickPopupTransitionManager transitionManager
 
QQuickPopupAnchorsanchors = nullptr
 
qreal explicitDimmerOpacity = 0
 
qreal prevOpacity = 0
 
qreal prevScale = 0
 
- 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 QQuickPopupPrivate
enum  TransitionState { NoTransition , EnterTransition , ExitTransition }
 
- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 
using ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData>
 
- Static Public Attributes inherited from QQuickPopupPrivate
static const QQuickPopup::ClosePolicy DefaultClosePolicy = QQuickPopup::CloseOnEscape | QQuickPopup::CloseOnPressOutside
 Base type of popup-like user interface controls.
 
- Protected Member Functions inherited from QQuickPaletteProviderPrivateBase< QQuickPopup, QQuickPopupPrivate >
void setCurrentColorGroup ()
 

Detailed Description

Definition at line 24 of file qquickdrawer_p_p.h.

Member Function Documentation

◆ blockInput()

bool QQuickDrawerPrivate::blockInput ( QQuickItem * item,
const QPointF & point ) const
overridevirtual

Reimplemented from QQuickPopupPrivate.

Definition at line 437 of file qquickdrawer.cpp.

References QQuickItem::contains(), QQuickPopupPrivate::dimmer, QQuickItem::isAncestorOf(), isWithinDragMargin(), item, QQuickItem::keepMouseGrab(), QQuickItem::keepTouchGrab(), QQuickItem::mapFromScene(), QQuickPopupPrivate::modal, and QQuickPopupPrivate::popupItem.

+ Here is the call graph for this function:

◆ effectiveEdge()

Qt::Edge QQuickDrawerPrivate::effectiveEdge ( ) const

Definition at line 657 of file qquickdrawer.cpp.

References Qt::BottomEdge, QQuickWindow::contentItem, edge, Qt::LeftEdge, qAbs(), Qt::RightEdge, QQuickItem::rotation, Qt::TopEdge, and QQuickPopupPrivate::window.

Referenced by grabMouse(), handleRelease(), isWithinDragMargin(), and positionAt().

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

◆ get()

static QQuickDrawerPrivate * QQuickDrawerPrivate::get ( QQuickDrawer * drawer)
inlinestatic

Definition at line 29 of file qquickdrawer_p_p.h.

Referenced by QQuickOverlayPrivate::startDrag().

+ Here is the caller graph for this function:

◆ getPositioner()

QQuickPopupPositioner * QQuickDrawerPrivate::getPositioner ( )
overridevirtual

Reimplemented from QQuickPopupPrivate.

Definition at line 192 of file qquickdrawer.cpp.

References QQuickPopupPrivate::positioner.

◆ grabMouse()

◆ handleMove()

bool QQuickDrawerPrivate::handleMove ( QQuickItem * item,
const QPointF & point,
ulong timestamp )
overridevirtual

Reimplemented from QQuickPopupPrivate.

Definition at line 470 of file qquickdrawer.cpp.

References QQuickPopupPrivate::contains(), QQuickPopupPrivate::handleMove(), item, QQuickItem::keepMouseGrab(), QQuickItem::keepTouchGrab(), QQuickPopupPrivate::popupItem, position, positionAt(), and qFuzzyCompare().

+ Here is the call graph for this function:

◆ handlePress()

bool QQuickDrawerPrivate::handlePress ( QQuickItem * item,
const QPointF & point,
ulong timestamp )
overridevirtual

Reimplemented from QQuickPopupPrivate.

Definition at line 459 of file qquickdrawer.cpp.

References QQuickPopupPrivate::handlePress(), QQuickPopupPrivate::interactive, item, QQuickPopupPrivate::popupItem, QQuickVelocityCalculator::startMeasuring(), and velocityCalculator.

+ Here is the call graph for this function:

◆ handleRelease()

◆ handleUngrab()

void QQuickDrawerPrivate::handleUngrab ( )
overridevirtual

Reimplemented from QQuickPopupPrivate.

Definition at line 558 of file qquickdrawer.cpp.

References QQuickPopupPrivate::handleUngrab(), QQuickVelocityCalculator::reset(), and velocityCalculator.

+ Here is the call graph for this function:

◆ hideDimmer()

void QQuickDrawerPrivate::hideDimmer ( )
overridevirtual

Reimplemented from QQuickPopupPrivate.

Definition at line 235 of file qquickdrawer.cpp.

◆ isWithinDragMargin()

bool QQuickDrawerPrivate::isWithinDragMargin ( const QPointF & point) const

Definition at line 261 of file qquickdrawer.cpp.

References Qt::BottomEdge, effectiveEdge(), Qt::LeftEdge, pos, Qt::RightEdge, and Qt::TopEdge.

Referenced by blockInput(), and startDrag().

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

◆ offsetAt()

qreal QQuickDrawerPrivate::offsetAt ( const QPointF & point) const

Definition at line 150 of file qquickdrawer.cpp.

References QQuickPopupPrivate::contains(), offset, position, and positionAt().

Referenced by grabMouse().

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

◆ positionAt()

qreal QQuickDrawerPrivate::positionAt ( const QPointF & point) const

Definition at line 161 of file qquickdrawer.cpp.

References Qt::BottomEdge, edge, effectiveEdge(), QWindow::height, Qt::LeftEdge, Qt::RightEdge, Qt::TopEdge, QWindow::width, QQuickPopupPrivate::window, QPointF::x(), and QPointF::y().

Referenced by handleMove(), and offsetAt().

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

◆ prepareEnterTransition()

bool QQuickDrawerPrivate::prepareEnterTransition ( )
overridevirtual

Reimplemented from QQuickPopupPrivate.

Definition at line 585 of file qquickdrawer.cpp.

References QQuickPopupPrivate::enter, QQuickPopupPrivate::enterActions, QQuickPopupPrivate::prepareEnterTransition(), and prepareTransition().

Referenced by grabMouse().

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

◆ prepareExitTransition()

bool QQuickDrawerPrivate::prepareExitTransition ( )
overridevirtual

Reimplemented from QQuickPopupPrivate.

Definition at line 592 of file qquickdrawer.cpp.

References QQuickPopupPrivate::exit, QQuickPopupPrivate::exitActions, QQuickPopupPrivate::prepareExitTransition(), and prepareTransition().

+ Here is the call graph for this function:

◆ resizeDimmer()

void QQuickDrawerPrivate::resizeDimmer ( )
overridevirtual

Reimplemented from QQuickPopupPrivate.

Definition at line 240 of file qquickdrawer.cpp.

References QQuickPopupPrivate::dimmer, edge, QQuickItem::height, Qt::LeftEdge, QQuickOverlay::overlay(), QQuickPopupPrivate::popupItem, Qt::RightEdge, QQuickItem::setPosition(), QQuickItem::setSize(), QRectF::setY(), QQuickItem::width, QQuickPopupPrivate::window, QQuickItem::x, and QQuickItem::y.

+ Here is the call graph for this function:

◆ setEdge()

bool QQuickDrawerPrivate::setEdge ( Qt::Edge edge)

Definition at line 599 of file qquickdrawer.cpp.

References QQuickPopupPrivate::allowHorizontalMove, QQuickPopupPrivate::allowHorizontalResize, QQuickPopupPrivate::allowVerticalMove, QQuickPopupPrivate::allowVerticalResize, Qt::BottomEdge, edge, Qt::LeftEdge, qmlWarning(), Qt::RightEdge, and Qt::TopEdge.

+ Here is the call graph for this function:

◆ showDimmer()

void QQuickDrawerPrivate::showDimmer ( )
overridevirtual

Reimplemented from QQuickPopupPrivate.

Definition at line 230 of file qquickdrawer.cpp.

◆ startDrag()

bool QQuickDrawerPrivate::startDrag ( QEvent * event)

Member Data Documentation

◆ delayedEnterTransition

bool QQuickDrawerPrivate::delayedEnterTransition = false

Definition at line 66 of file qquickdrawer_p_p.h.

Referenced by grabMouse(), and startDrag().

◆ dragMargin

qreal QQuickDrawerPrivate::dragMargin = 0

Definition at line 64 of file qquickdrawer_p_p.h.

Referenced by grabMouse(), and startDrag().

◆ edge

Qt::Edge QQuickDrawerPrivate::edge = Qt::LeftEdge

Definition at line 61 of file qquickdrawer_p_p.h.

Referenced by effectiveEdge(), positionAt(), resizeDimmer(), and setEdge().

◆ offset

qreal QQuickDrawerPrivate::offset = 0

Definition at line 62 of file qquickdrawer_p_p.h.

Referenced by offsetAt().

◆ position

qreal QQuickDrawerPrivate::position = 0

Definition at line 63 of file qquickdrawer_p_p.h.

Referenced by grabMouse(), handleMove(), handleRelease(), and offsetAt().

◆ velocityCalculator

QQuickVelocityCalculator QQuickDrawerPrivate::velocityCalculator

Definition at line 65 of file qquickdrawer_p_p.h.

Referenced by handlePress(), handleRelease(), and handleUngrab().


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