diff options
Diffstat (limited to 'src/imports/webchannel/plugin.cpp')
-rw-r--r-- | src/imports/webchannel/plugin.cpp | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/src/imports/webchannel/plugin.cpp b/src/imports/webchannel/plugin.cpp deleted file mode 100644 index 2914bb4..0000000 --- a/src/imports/webchannel/plugin.cpp +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (C) 2016 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com, author Milian Wolff <milian.wolff@kdab.com> -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only - -#include <qqml.h> -#include <QtQml/QQmlExtensionPlugin> - -#include <qqmlwebchannel.h> -#include <qqmlwebchannelattached_p.h> - -QT_BEGIN_NAMESPACE - -class QWebChannelPlugin : public QQmlExtensionPlugin -{ - Q_OBJECT - Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid) - -public: - QWebChannelPlugin(QObject *parent = 0) : QQmlExtensionPlugin(parent) { } - void registerTypes(const char *uri) override; -}; - -void QWebChannelPlugin::registerTypes(const char *uri) -{ - int major = 1; - int minor = 0; - qmlRegisterType<QQmlWebChannel>(uri, major, minor, "WebChannel"); - - // The minor version used to be the current Qt 5 minor. For compatibility it is the last - // Qt 5 release. - qmlRegisterModule(uri, major, 15); -} - -QT_END_NAMESPACE - -#include "plugin.moc" |