24 Q_PROPERTY(QQmlComponent *delegate READ delegate WRITE setDelegate)
25 Q_PROPERTY(QQuickWindow *window READ window NOTIFY windowChanged)
26 Q_PROPERTY(
bool forceWindowMode READ forceWindowMode WRITE setForceWindowMode)
27#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
28 QML_UNCREATABLE(
"PopupWindow Attached.")
29 QML_NAMED_ELEMENT(PopupHandle)
39 static void setPopupMode(
const DQMLGlobalObject::PopupMode mode);
41 QQuickWindow *window()
const;
42 QQmlComponent *delegate()
const;
43 void setDelegate(QQmlComponent *delegate);
44 bool forceWindowMode()
const;
45 void setForceWindowMode(
bool forceWindowMode);
54 QObject *popup()
const;
55 bool needCreateHandle()
const;
58 bool m_forceWindowMode =
false;
59 bool m_isWindowMode =
false;
60 QQmlComponent *m_delegate =
nullptr;
61 QScopedPointer<DPopupWindowHandleImpl> m_handle;
62 static DQMLGlobalObject::PopupMode m_popupMode;