Deal the wrappers in shared_ptr instead of unique_ptr
Easier to pass around and better for our use case, where we actual can have shared usage
This commit is contained in:
@@ -42,8 +42,8 @@ public:
|
||||
QSize maximumSize() const override;
|
||||
void setSize(int width, int height) override;
|
||||
bool is(Type) const override;
|
||||
std::unique_ptr<ViewWrapper> window() const override;
|
||||
std::unique_ptr<ViewWrapper> parentView() const override;
|
||||
std::shared_ptr<ViewWrapper> window() const override;
|
||||
std::shared_ptr<ViewWrapper> parentView() const override;
|
||||
HANDLE handle() const override;
|
||||
void grabMouse() override;
|
||||
void releaseMouse() override;
|
||||
|
||||
Reference in New Issue
Block a user