1/*
2 SPDX-FileCopyrightText: 2011 Marco Martin <mart@kde.org>
3
4 SPDX-License-Identifier: MIT
5*/
6
7#include "draganddropplugin.h"
8
9#include "DeclarativeDragArea.h"
10#include "DeclarativeDragDropEvent.h"
11#include "DeclarativeDropArea.h"
12#include "DeclarativeMimeData.h"
13#include "MimeDataWrapper.h"
14
15void DragAndDropPlugin::registerTypes(const char *uri)
16{
17 Q_ASSERT(QString::fromLatin1(uri) == QLatin1String("org.kde.draganddrop"));
18
19 qmlRegisterType<DeclarativeDropArea>(uri, versionMajor: 2, versionMinor: 0, qmlName: "DropArea");
20 qmlRegisterType<DeclarativeDragArea>(uri, versionMajor: 2, versionMinor: 0, qmlName: "DragArea");
21 qmlRegisterAnonymousType<QMimeData>(uri, versionMajor: 1);
22 qmlRegisterUncreatableType<DeclarativeMimeData>(uri, versionMajor: 2, versionMinor: 0, qmlName: "MimeData", QStringLiteral("MimeData cannot be created from QML."));
23 qmlRegisterUncreatableType<DeclarativeDragDropEvent>(uri, versionMajor: 2, versionMinor: 0, qmlName: "DragDropEvent", QStringLiteral("DragDropEvent cannot be created from QML."));
24 qmlRegisterUncreatableType<MimeDataWrapper>(uri, versionMajor: 2, versionMinor: 0, qmlName: "MimeDataWrapper", QStringLiteral("DragDropEvent cannot be created from QML."));
25}
26
27#include "moc_draganddropplugin.cpp"
28

source code of kdeclarative/src/qmlcontrols/draganddrop/draganddropplugin.cpp