blob: 93b6b4a10899c6798c480797c0316c5579f65079 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// Copyright (C) 2020 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#include "customwidgets.h"
#include "customwidget.h"
PyCustomWidgets::PyCustomWidgets(QObject *parent)
: QObject(parent)
{
}
PyCustomWidgets::~PyCustomWidgets()
{
qDeleteAll(m_widgets);
}
void PyCustomWidgets::registerWidgetType(PyObject *widget)
{
m_widgets.append(new PyCustomWidget(widget));
}
QList<QDesignerCustomWidgetInterface *> PyCustomWidgets::customWidgets() const
{
return m_widgets;
}
|