quick: Make DockWidgetBase::setWidget() virtual

The QtQuick counter-part needs to do some specific things, like
settings anchors.parent: fill on it, and parenting it
This commit is contained in:
Sergio Martins
2020-10-04 00:01:32 +01:00
parent 2ea0d54e6c
commit 951aeece6e
4 changed files with 13 additions and 4 deletions

View File

@@ -139,7 +139,7 @@ public:
* call setWidget(A) followed by setWidget(B) then A will have to be deleted by you, while B is
* owned by the dock widget.
*/
void setWidget(QWidgetOrQuick *widget);
virtual void setWidget(QWidgetOrQuick *widget);
/**
* @brief returns the widget which this dock widget hosts