OverlayZStackingAttached
#include <overlayzstackingattached.h>
Public Types | |
enum | Layer { DefaultLowest = 0 , Drawer , FullScreen , Dialog , Menu , Notification , ToolTip } |
Properties | |
Layer | layer |
QML_ELEMENTqreal | z |
Properties inherited from QObject | |
objectName | |
Signals | |
void | layerChanged () |
void | zChanged () |
Additional Inherited Members | |
Public Attributes inherited from QObject | |
typedef | QObjectList |
Protected Member Functions inherited from QObject | |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const QMetaMethod &signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const QMetaMethod &signal) |
bool | isSignalConnected (const QMetaMethod &signal) const const |
int | receivers (const char *signal) const const |
QObject * | sender () const const |
int | senderSignalIndex () const const |
virtual void | timerEvent (QTimerEvent *event) |
Detailed Description
This attached property manages z-index for stacking overlays relative to each other.
When a popup is about to show, OverlayZStacking object kicks in, searches for the next nearest popup in the QtQuick hierarchy of items, and sets its z value to the biggest of two: current stacking value for its layer, or parent's z index + 1. This way OverlayZStacking algorithm ensures that a popup is always stacked higher than its logical parent popup, but also no lower than its siblings on the same logical layer.
- Since
- 6.0
Definition at line 39 of file overlayzstackingattached.h.
Member Enumeration Documentation
◆ Layer
enum OverlayZStackingAttached::Layer |
Definition at line 57 of file overlayzstackingattached.h.
Property Documentation
◆ layer
|
readwrite |
The logical stacking layer of attachee popup, akin to window manager's layers.
Definition at line 54 of file overlayzstackingattached.h.
◆ z
|
read |
An optimal z-index that attachee popup should bind to.
Definition at line 49 of file overlayzstackingattached.h.
Constructor & Destructor Documentation
◆ OverlayZStackingAttached()
Definition at line 13 of file overlayzstackingattached.cpp.
◆ ~OverlayZStackingAttached()
|
override |
Definition at line 31 of file overlayzstackingattached.cpp.
Member Function Documentation
◆ layer()
OverlayZStackingAttached::Layer OverlayZStackingAttached::layer | ( | ) | const |
Definition at line 47 of file overlayzstackingattached.cpp.
◆ qmlAttachedProperties()
|
static |
Definition at line 63 of file overlayzstackingattached.cpp.
◆ setLayer()
void OverlayZStackingAttached::setLayer | ( | Layer | layer | ) |
Definition at line 52 of file overlayzstackingattached.cpp.
◆ z()
qreal OverlayZStackingAttached::z | ( | ) | const |
Definition at line 35 of file overlayzstackingattached.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 17 2024 11:49:07 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.