Don't leak Layouting::Widget

Don't create it directly, instead of multi-inheritance
This commit is contained in:
Sergio Martins
2020-05-24 18:40:09 +01:00
parent c31edd0cd8
commit c33c7ab450
6 changed files with 31 additions and 13 deletions

View File

@@ -39,9 +39,14 @@ namespace Layouting {
class Item;
///@brief An abstraction/wrapper around QWidget, QtQuickItem or anything else
///
/// So the layout can host QWidget, etc without depending on it.
/**
* @brief An abstraction/wrapper around QWidget, QtQuickItem or anything else
*
* So the layout can host QWidget, etc without depending on it.
*
* Inherit from it via multi-inheritance so this wrapper is deleted when the actual QWidget/QQuickItem
* is deleted.
*/
class Widget
{
public: