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>.
|
#include <qquickoverlay_p_p.h>
Additional Inherited Members | |
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> |
Protected Member Functions inherited from QQuickPaletteProviderPrivateBase< QQuickItem, QQuickItemPrivate > | |
void | setCurrentColorGroup () |
Definition at line 29 of file qquickoverlay_p_p.h.
void QQuickOverlayPrivate::addPopup | ( | QQuickPopup * | popup | ) |
Definition at line 237 of file qquickoverlay.cpp.
References allDrawers, allPopups, and QList< T >::isEmpty().
|
inlinestatic |
Definition at line 35 of file qquickoverlay_p_p.h.
Referenced by QQuickPopupPrivate::finalizeExitTransition(), QQuickPopupPrivate::handleUngrab(), isBlockedByPopup(), QQuickPopupPrivate::prepareEnterTransition(), and QQuickPopupPrivate::setWindow().
bool QQuickOverlayPrivate::handleHoverEvent | ( | QQuickItem * | source, |
QHoverEvent * | event, | ||
QQuickPopup * | target = nullptr ) |
Definition at line 185 of file qquickoverlay.cpp.
References QEvent::HoverEnter, QEvent::HoverLeave, and QEvent::HoverMove.
bool QQuickOverlayPrivate::handleMouseEvent | ( | QQuickItem * | source, |
QMouseEvent * | event, | ||
QQuickPopup * | target = nullptr ) |
Definition at line 168 of file qquickoverlay.cpp.
References QPointer< T >::data(), handleMove(), handlePress(), handleRelease(), QEvent::MouseButtonPress, QEvent::MouseButtonRelease, mouseGrabberPopup, QEvent::MouseMove, and startDrag().
bool QQuickOverlayPrivate::handleMove | ( | QQuickItem * | source, |
QEvent * | event, | ||
QQuickPopup * | target ) |
Definition at line 143 of file qquickoverlay.cpp.
Referenced by handleMouseEvent().
bool QQuickOverlayPrivate::handlePress | ( | QQuickItem * | source, |
QEvent * | event, | ||
QQuickPopup * | target ) |
Definition at line 106 of file qquickoverlay.cpp.
References mouseGrabberPopup, Q_FALLTHROUGH, setMouseGrabberPopup(), stackingOrderPopups(), QEvent::TouchBegin, QEvent::TouchEnd, and QEvent::TouchUpdate.
Referenced by handleMouseEvent().
bool QQuickOverlayPrivate::handleRelease | ( | QQuickItem * | source, |
QEvent * | event, | ||
QQuickPopup * | target ) |
Definition at line 150 of file qquickoverlay.cpp.
References setMouseGrabberPopup(), and stackingOrderPopups().
Referenced by handleMouseEvent().
|
overridevirtual |
Reimplemented from QQuickItemChangeListener.
Definition at line 65 of file qquickoverlay.cpp.
References updateGeometry().
|
overridevirtual |
Reimplemented from QQuickItemChangeListener.
Definition at line 70 of file qquickoverlay.cpp.
References updateGeometry().
void QQuickOverlayPrivate::removePopup | ( | QQuickPopup * | popup | ) |
Definition at line 247 of file qquickoverlay.cpp.
References allDrawers, allPopups, QList< T >::isEmpty(), and QList< T >::removeOne().
void QQuickOverlayPrivate::setMouseGrabberPopup | ( | QQuickPopup * | popup | ) |
Definition at line 255 of file qquickoverlay.cpp.
References mouseGrabberPopup.
Referenced by handlePress(), handleRelease(), and startDrag().
QList< QQuickPopup * > QQuickOverlayPrivate::stackingOrderDrawers | ( | ) | const |
Definition at line 56 of file qquickoverlay.cpp.
References allDrawers.
Referenced by startDrag().
QT_BEGIN_NAMESPACE QList< QQuickPopup * > QQuickOverlayPrivate::stackingOrderPopups | ( | ) | const |
A window overlay for popups.
\qmltype Overlay \inherits Item
! \instantiates QQuickOverlay \inqmlmodule QtQuick.Controls
Overlay provides a layer for popups, ensuring that popups are displayed above other content and that the background is dimmed when a \l {Popup::}{modal} or \l {Popup::dim}{dimmed} popup is visible.
The overlay is an ordinary Item that covers the entire window. It can be used as a visual parent to position a popup in scene coordinates.
Definition at line 40 of file qquickoverlay.cpp.
References QQuickItemPrivate::children(), it, and QQuickItemPrivate::paintOrderChildItems().
Referenced by handlePress(), handleRelease(), and startDrag().
Definition at line 75 of file qquickoverlay.cpp.
References allDrawers, QQuickDrawerPrivate::get(), QQuickPopupPrivate::get(), QList< T >::isEmpty(), QGraphicsItem::isVisible(), item, pos, Q_ASSERT, setMouseGrabberPopup(), stackingOrderDrawers(), and stackingOrderPopups().
Referenced by handleMouseEvent().
void QQuickOverlayPrivate::updateGeometry | ( | ) |
Definition at line 262 of file qquickoverlay.cpp.
References QQuickWindow::contentItem, QWindow::height, pos, QQuickItem::size(), QWindow::width, and QQuickItemPrivate::window.
Referenced by itemGeometryChanged(), and itemRotationChanged().
QList<QQuickPopup *> QQuickOverlayPrivate::allDrawers |
Definition at line 68 of file qquickoverlay_p_p.h.
Referenced by addPopup(), removePopup(), stackingOrderDrawers(), and startDrag().
QList<QQuickPopup *> QQuickOverlayPrivate::allPopups |
Definition at line 65 of file qquickoverlay_p_p.h.
Referenced by addPopup(), and removePopup().
QPointer<QQuickItem> QQuickOverlayPrivate::lastActiveFocusItem |
Definition at line 70 of file qquickoverlay_p_p.h.
QQmlComponent* QQuickOverlayPrivate::modal = nullptr |
Definition at line 63 of file qquickoverlay_p_p.h.
QQmlComponent* QQuickOverlayPrivate::modeless = nullptr |
Definition at line 64 of file qquickoverlay_p_p.h.
QPointer<QQuickPopup> QQuickOverlayPrivate::mouseGrabberPopup |
Definition at line 69 of file qquickoverlay_p_p.h.
Referenced by handleMouseEvent(), handlePress(), and setMouseGrabberPopup().