Commit fbfbe067 authored by Erik Verbruggen's avatar Erik Verbruggen
Browse files

Fixes to the plugin wizard: adapting to changes in the runtime.

parent 9ddd7a59
......@@ -44,9 +44,7 @@
void %ProjectName%::registerTypes(const char *uri)
{
Q_UNUSED(uri);
QML_REGISTER_TYPE(%ProjectName%,1,0,%ObjectName%,%ObjectName%);
qmlRegisterType<%ObjectName%>(uri, 1, 0, "%ObjectName%");
}
Q_EXPORT_PLUGIN(%ProjectName%);
......@@ -4,14 +4,13 @@ QT += declarative
CONFIG += qt plugin
TARGET = $$qtLibraryTarget($$TARGET)
DESTDIR = %ProjectName%
# Input
SOURCES += \
%ProjectName%.cpp \
%ObjectName%.cpp
OTHER_FILES=%ProjectName%/qmldir
OTHER_FILES=qmldir
HEADERS += \
%ProjectName%.h \
......
......@@ -41,7 +41,7 @@ leave room for the Qt 4 target page.
<displayname>QML Runtime Plug-in</displayname>
<displaycategory>QML Runtime Plug-in</displaycategory>
<files>
<file source="qmldir" target="%ProjectName%/qmldir"/>
<file source="qmldir" target="qmldir"/>
<file source="plugin.h" target="%ProjectName%.h"/>
<file source="plugin.cpp" target="%ProjectName%.cpp"/>
<file source="object.h" target="%ObjectName%.h"/>
......
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