Files
qt-creator/tests/manual/debugger/qquick2/myplugin/myplugin.cpp
Kai Koehne e8241adae3 Debugger: Add simple app to test mixed QML/CPP debugging (QQuick2)
Change-Id: Id744e3306da20bd7e2051ec4c45e3475084b64bc
Reviewed-by: hjk <qthjk@ovi.com>
2012-01-24 10:39:53 +01:00

12 lines
231 B
C++

#include "myplugin.h"
#include "mytype.h"
void MyPlugin::registerTypes(const char *uri)
{
// @uri mymodule
// bp here should be hit on startup
qmlRegisterType<MyType>(uri, 1, 0, "MyType");
}
Q_EXPORT_PLUGIN(MyPlugin)