Commit 536bea2d authored by Kai Koehne's avatar Kai Koehne
Browse files

QmlExtensionPlugin: Fix compilation with QtQuick1/Qt 5



Change-Id: Ib3899f8097c97114baeca0fe7c9b6ac4ba78dbde
Reviewed-by: default avatarAlessandro Portale <alessandro.portale@digia.com>
parent f346eb40
......@@ -9,4 +9,6 @@ void %ProjectName:s%Plugin::registerTypes(const char *uri)
qmlRegisterType<%ObjectName%>(uri, 1, 0, "%ObjectName%");
}
Q_EXPORT_PLUGIN2(%ProjectName:s%, %ProjectName:s%Plugin)
#if QT_VERSION < 0x050000
Q_EXPORT_PLUGIN2(%ProjectName:s%, %ProjectName:s%Plugin)
#endif
......@@ -6,6 +6,9 @@
class %ProjectName:s%Plugin : public QDeclarativeExtensionPlugin
{
Q_OBJECT
#if QT_VERSION >= 0x050000
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
#endif
public:
void registerTypes(const char *uri);
......
Markdown is supported
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