forked from quickshell/quickshell
core/window: add QsWindow attached object to contained Items
This commit is contained in:
parent
d1c33d48cd
commit
e48af44607
4 changed files with 75 additions and 1 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue