From 245ddfa1f01b4c9fa10337246b8045755e5bcce5 Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: 周二, 19 12月 2023 21:03:58 +0800 Subject: [PATCH] Change back to qScopeGuard --- src/quick/quickwindowagent.h | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/quick/quickwindowagent.h b/src/quick/quickwindowagent.h index 4d6160b..95220c0 100644 --- a/src/quick/quickwindowagent.h +++ b/src/quick/quickwindowagent.h @@ -38,6 +38,12 @@ QuickWindowAgent(QuickWindowAgentPrivate &d, QObject *parent = nullptr); }; + inline QuickWindowAgent *setupQuickWindow(QQuickWindow *window) { + auto agent = new QuickWindowAgent(window); + agent->setup(window); + return agent; + } + } #endif // QUICKWINDOWAGENT_H \ No newline at end of file -- Gitblit v1.9.1