import QtQuick 2.12

Item {
    id: _contentArea
    height: contentItem ? contentItem.height :
                          0

    property Item contentItem: Item { id: defaultContentItem
        parent  : _contentArea
        height  : 10
    }

    onContentItemChanged: {
        if (contentItem) {
            contentItem.parent          = _contentArea
            contentItem.anchors.top     = _contentArea.top
            contentItem.anchors.left    = _contentArea.left
            contentItem.anchors.right   = _contentArea.right
            contentItem.anchors.bottom  = _contentArea.bottom
        }
    }
}
