diff options
author | Paolo Angelelli <paolo.angelelli@qt.io> | 2018-04-10 17:33:19 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2018-06-21 12:29:09 +0000 |
commit | 55db3890f44c7bef9a6ecb2b2f3bf31e288a3cd8 (patch) | |
tree | 440c030ab4d4230e10b545c0547bf911374975eb /src/imports/shapes/plugin.cpp | |
parent | 3c14450a3e08fdaf6fb4933e354e17e4944a084f (diff) |
Move QtQuick.Shapes implementation to qtquickshapes, privately exported
This change moves the implementation of QtQuick.Shapes into an own
qt module, where classes are privately exported.
In this way Shapes QML types can be internally (= from other Qt
modules) instantiated also from cpp.
Change-Id: I428f981f0a1f3083e6571cbeaffa706fd8ef7254
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/imports/shapes/plugin.cpp')
-rw-r--r-- | src/imports/shapes/plugin.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/imports/shapes/plugin.cpp b/src/imports/shapes/plugin.cpp index f2635d2995..e3a9017681 100644 --- a/src/imports/shapes/plugin.cpp +++ b/src/imports/shapes/plugin.cpp @@ -39,8 +39,7 @@ #include <QtQml/qqmlextensionplugin.h> #include <QtQml/qqml.h> - -#include "qquickshape_p.h" +#include <QtQuickShapes/private/qquickshape_p.h> QT_BEGIN_NAMESPACE @@ -50,7 +49,11 @@ class QmlShapesPlugin : public QQmlExtensionPlugin Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid) public: - QmlShapesPlugin(QObject *parent = nullptr) : QQmlExtensionPlugin(parent) { } + QmlShapesPlugin(QObject *parent = nullptr) + : QQmlExtensionPlugin(parent) + { + } + void registerTypes(const char *uri) override { Q_ASSERT(QByteArray(uri) == QByteArray("QtQuick.Shapes")); |