2010-09-28 11:55:30 +02:00
|
|
|
#include "%ProjectName:l%_plugin.%CppHeaderSuffix%"
|
2010-09-17 16:53:33 +02:00
|
|
|
#include "%ObjectName:l%.%CppHeaderSuffix%"
|
2010-03-19 13:52:16 +01:00
|
|
|
|
2012-02-15 10:42:41 +01:00
|
|
|
#include <qdeclarative.h>
|
2010-03-19 13:52:16 +01:00
|
|
|
|
2011-01-11 15:25:04 +01:00
|
|
|
void %ProjectName:s%Plugin::registerTypes(const char *uri)
|
2010-03-19 13:52:16 +01:00
|
|
|
{
|
2011-09-30 08:50:57 +02:00
|
|
|
// @uri %Uri%
|
2010-04-08 10:51:44 +02:00
|
|
|
qmlRegisterType<%ObjectName%>(uri, 1, 0, "%ObjectName%");
|
2010-03-19 13:52:16 +01:00
|
|
|
}
|
|
|
|
|
|
2012-11-19 12:41:33 +01:00
|
|
|
#if QT_VERSION < 0x050000
|
|
|
|
|
Q_EXPORT_PLUGIN2(%ProjectName:s%, %ProjectName:s%Plugin)
|
|
|
|
|
#endif
|