Warning, file /plasma/milou/lib/qml/qmlplugins.cpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /*
0002  * This file is part of the KDE Milou Project
0003  * SPDX-FileCopyrightText: 2013 Vishesh Handa <me@vhanda.in>
0004  *
0005  * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0006  *
0007  */
0008 
0009 #include "qmlplugins.h"
0010 
0011 #include "draghelper.h"
0012 #include "mousehelper.h"
0013 #include "resultsmodel.h"
0014 #include "sourcesmodel.h"
0015 
0016 #include <QMimeData>
0017 #include <QQmlEngine>
0018 
0019 void QmlPlugins::initializeEngine(QQmlEngine *, const char *)
0020 {
0021 }
0022 
0023 void QmlPlugins::registerTypes(const char *uri)
0024 {
0025     qmlRegisterType<Milou::SourcesModel>(uri, 0, 1, "SourcesModel");
0026     qmlRegisterType<Milou::ResultsModel>(uri, 0, 3, "ResultsModel");
0027     qmlRegisterType<Milou::DragHelper>(uri, 0, 2, "DragHelper");
0028     qmlRegisterSingletonType<Milou::MouseHelper>(uri, 0, 1, "MouseHelper", [](QQmlEngine *, QJSEngine *) -> QObject * {
0029         return new Milou::MouseHelper();
0030     });
0031     qmlRegisterAnonymousType<QMimeData>(uri, 0);
0032 }