From 7477821b9b699397600082454ec26f67f11ae564 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=99=E2=97=A6=20The=20Tablet=20=E2=9D=80=20GamerGirla?= =?UTF-8?q?ndCo=20=E2=97=A6=E2=9D=A7?= Date: Wed, 14 Jan 2026 23:48:20 -0500 Subject: [PATCH] feat(framework): add helper method to `TUWidgetLayoutViewBase` which returns the frame which contains this `TULayoutView` --- framework/include/public/toon_boom/ext/layout.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/framework/include/public/toon_boom/ext/layout.hpp b/framework/include/public/toon_boom/ext/layout.hpp index 4c5fb2e..73718b8 100644 --- a/framework/include/public/toon_boom/ext/layout.hpp +++ b/framework/include/public/toon_boom/ext/layout.hpp @@ -57,6 +57,17 @@ public: void isTULayoutView() override {} void disconnectView() override {} + TULayoutFrame *getOwnerFrame() { + auto lm = PLUG_Services::getLayoutManager(); + if (!lm) { + return nullptr; + } + auto frame = lm->findFrame(this); + if (!frame) { + return nullptr; + } + return frame; + } protected: QPointer m_widget;