core/window: add QsWindow attached object to contained Items

This commit is contained in:
outfoxxed 2024-07-17 20:54:29 -07:00
parent d1c33d48cd
commit e48af44607
Signed by untrusted user: outfoxxed
GPG key ID: 4C88A185FB89301E
4 changed files with 75 additions and 1 deletions

View file

@ -136,3 +136,18 @@ private:
void polishItems();
void updateMask();
};
class ProxyWindowAttached: public QsWindowAttached {
Q_OBJECT;
public:
explicit ProxyWindowAttached(ProxyWindowBase* window)
: QsWindowAttached(window)
, mWindow(window) {}
[[nodiscard]] QObject* window() const override;
[[nodiscard]] QQuickItem* contentItem() const override;
private:
ProxyWindowBase* mWindow;
};