Commit 085aec4c authored by Andy Shaw's avatar Andy Shaw
Browse files

Enable using the module in a statically built application


Change-Id: I71705aa185510c4ffce169fcd719514868037c68
Reviewed-by: default avatarMiikka Heikkinen <miikka.heikkinen@theqtcompany.com>
Showing with 14 additions and 1 deletion
......@@ -41,10 +41,22 @@
#include <QtQml/qqml.h>
static void initResources()
{
#ifdef QT_STATIC
Q_INIT_RESOURCE(qmake_QtCanvas3D);
#endif
}
QT_BEGIN_NAMESPACE
QT_CANVAS3D_BEGIN_NAMESPACE
QtCanvas3DPlugin::QtCanvas3DPlugin(QObject *parent) : QQmlExtensionPlugin(parent)
{
initResources();
}
void QtCanvas3DPlugin::registerTypes(const char *uri)
{
// @uri com.digia.qtcanvas3d
......
......@@ -85,9 +85,10 @@ QT_CANVAS3D_BEGIN_NAMESPACE
class QtCanvas3DPlugin : public QQmlExtensionPlugin
{
Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface/1.0")
public:
QtCanvas3DPlugin(QObject *parent = 0);
void registerTypes(const char *uri);
};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment