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);
56 QQuickWindow *popupWindow()
const;
57 QQuickItem *popupItem()
const;
58 void popupItemReparented();
60 bool isEnabled()
const;
61 void adjustPopupPosition();
64 QObject *m_popup =
nullptr;
66 bool m_enabled =
false;
68 QPointer<QQuickWindow> m_parentWindow =
nullptr;
69 QPointer<QQuickWindow> m_popupWin =
nullptr;
70 QPointer<QQuickItem> m_trackedItem =
nullptr;