File indexing completed on 2025-03-09 04:05:57

0001 /*
0002     SPDX-FileCopyrightText: 2011 Marco Martin <mart@kde.org>
0003 
0004     SPDX-License-Identifier: MIT
0005 */
0006 
0007 #include "draganddropplugin.h"
0008 
0009 #include "DeclarativeDragArea.h"
0010 #include "DeclarativeDragDropEvent.h"
0011 #include "DeclarativeDropArea.h"
0012 #include "DeclarativeMimeData.h"
0013 
0014 void DragAndDropPlugin::registerTypes(const char *uri)
0015 {
0016     Q_ASSERT(uri == QLatin1String("org.krita.draganddrop"));
0017 
0018     qmlRegisterType<DeclarativeDropArea>(uri, 1, 0, "DropArea");
0019     qmlRegisterType<DeclarativeDragArea>(uri, 1, 0, "DragArea");
0020     qmlRegisterUncreatableType<DeclarativeMimeData>(uri, 1, 0, "MimeData", "MimeData cannot be created from QML.");
0021     qmlRegisterUncreatableType<DeclarativeDragDropEvent>(uri, 1, 0, "DragDropEvent", "DragDropEvent cannot be created from QML.");
0022 }
0023