aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlplugindump/data/dumper/ExtendedType/plugin.cpp
blob: e84355eb1161ce0a3ea75355e4330af48a4c0992 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright (C) 2018 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#include "plugin.h"
#include "types.h"

#include <qqml.h>

void Plugin::registerTypes(const char *uri)
{
    // @uri dumper.ExtendedType
    qmlRegisterType<Type>(uri, 1, 0, "Type");
    qmlRegisterExtendedType<Type, ExtendedType>(uri, 1, 1, "Type");
    qmlRegisterType<DerivedType2>(uri, 1, 1, "DerivedType");
}