2022-05-13 13:12:05 +00:00
|
|
|
// Copyright (C) 2019 The Qt Company Ltd.
|
2024-02-22 14:38:20 +00:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2012-12-21 23:42:47 +00:00
|
|
|
import QtQuick.Window 2.0
|
|
|
|
import QtQuick 2.0
|
|
|
|
|
|
|
|
Window {
|
|
|
|
property Item containedObject: null
|
|
|
|
onContainedObjectChanged: {
|
|
|
|
if (containedObject == undefined || containedObject == null) {
|
|
|
|
visible = false;
|
|
|
|
return;
|
|
|
|
}
|
2019-04-24 19:05:32 +00:00
|
|
|
width = Qt.binding(function() { return containedObject.width });
|
|
|
|
height = Qt.binding(function() { return containedObject.height });
|
2012-12-21 23:42:47 +00:00
|
|
|
containedObject.parent = contentItem;
|
|
|
|
visible = true;
|
|
|
|
}
|
|
|
|
}
|