##// END OF EJS Templates
First draft of project structure
First draft of project structure

File last commit:

r1:e2b454419c47
r1:e2b454419c47
Show More
plugin.cpp
22 lines | 542 B | text/x-c | CppLexer
#include <QtDeclarative/qdeclarativeextensionplugin.h>
#include <QtDeclarative/qdeclarative.h>
#include "declarativechart.h"
QT_BEGIN_NAMESPACE
class QmlChartPlugin : public QDeclarativeExtensionPlugin
{
Q_OBJECT
public:
virtual void registerTypes(const char *uri)
{
Q_ASSERT(QLatin1String(uri) == QLatin1String("com.digia.charts"));
qmlRegisterType<DeclarativeChart>(uri, 1, 0, "Chart");
}
};
QT_END_NAMESPACE
#include "plugin.moc"
Q_EXPORT_PLUGIN2(qmlchartplugin, QT_PREPEND_NAMESPACE(QmlChartPlugin));