27 QML_UNCREATABLE(
"PopupHandle Attached.")
28 QML_NAMED_ELEMENT(PopupHandle)
40 bool eventFilter(QObject *watched, QEvent *event)
override;
43 void itemGeometryChanged(QQuickItem *item,
44 QQuickGeometryChange change,
45 const QRectF &oldGeometry)
override;
47 void itemVisibilityChanged(QQuickItem *item)
override;
49 void itemParentChanged(QQuickItem *item, QQuickItem *oldParent)
override;
53 void onWindowChanged(QQuickWindow *window);
54 void onPopupVisibleChanged();
57 QQuickWindow *popupWindow()
const;
58 QQuickItem *popupItem()
const;
59 void popupItemReparented();
61 bool isEnabled()
const;
62 void adjustPopupPosition();
63 void requestPopupFocus();
64 void restoreParentFocus();
67 QObject *m_popup =
nullptr;
69 bool m_enabled =
false;
71 QPointer<QQuickWindow> m_parentWindow =
nullptr;
72 QPointer<QQuickWindow> m_popupWin =
nullptr;
73 QPointer<QQuickItem> m_trackedItem =
nullptr;
74 QPointer<QQuickItem> m_restoreFocusItem =
nullptr;
75 QPointer<QQuickItem> m_focusOwner =
nullptr;
76 bool m_popupFocusRequested =
false;