summaryrefslogtreecommitdiffstats
path: root/src/imports/graphics/drawable/qtqmlandroiddrawableplugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports/graphics/drawable/qtqmlandroiddrawableplugin.cpp')
-rw-r--r--src/imports/graphics/drawable/qtqmlandroiddrawableplugin.cpp16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/imports/graphics/drawable/qtqmlandroiddrawableplugin.cpp b/src/imports/graphics/drawable/qtqmlandroiddrawableplugin.cpp
index d53ec28..b83dfad 100644
--- a/src/imports/graphics/drawable/qtqmlandroiddrawableplugin.cpp
+++ b/src/imports/graphics/drawable/qtqmlandroiddrawableplugin.cpp
@@ -35,7 +35,10 @@
****************************************************************************/
#include <QtQml/qqmlextensionplugin.h>
-#include <QtQmlAndroid/private/qtqmlandroiddrawablemodule_p.h>
+#include <QtQml/qqml.h>
+
+#include <QtQmlAndroid/private/qqmlandroidcolordrawable_p.h>
+#include <QtQmlAndroid/private/qqmlandroiddrawable_p.h>
QT_BEGIN_NAMESPACE
@@ -45,12 +48,15 @@ class QtQmlAndroidDrawablePlugin: public QQmlExtensionPlugin
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface/1.0")
public:
- void registerTypes(const char *uri)
- {
- QtQmlAndroid::registerDrawableModule(uri);
- }
+ void registerTypes(const char *uri) override;
};
+void QtQmlAndroidDrawablePlugin::registerTypes(const char *uri)
+{
+ qmlRegisterType<QQmlAndroidColorDrawable>(uri, 0, 21, "ColorDrawable");
+ qmlRegisterType<QQmlAndroidDrawable>(uri, 0, 21, "Drawable");
+}
+
QT_END_NAMESPACE
#include "qtqmlandroiddrawableplugin.moc"