Introduce View::handle() and View::equals()

So we can compare two windows without calling asQWidget().
This commit is contained in:
Sergio Martins
2022-03-31 17:34:37 +01:00
parent 79abef21a5
commit 6687485e4c
6 changed files with 34 additions and 1 deletions

View File

@@ -311,6 +311,11 @@ public:
return QWidget::windowHandle();
}
HANDLE handle() const override
{
return reinterpret_cast<HANDLE>(this);
}
std::unique_ptr<ViewWrapper> window() const override
{
ViewWrapper *wrapper = new ViewWrapper_qtwidgets(QWidget::window());