##// END OF EJS Templates
d
d

File last commit:

r722:3c81c15bc4ba
r722:3c81c15bc4ba
Show More
plugin.cpp
38 lines | 1.3 KiB | text/x-c | CppLexer
Jani Honkonen
First draft of project structure
r1 #include <QtDeclarative/qdeclarativeextensionplugin.h>
#include <QtDeclarative/qdeclarative.h>
#include "declarativechart.h"
Tero Ahola
d
r722 #include "declarativetablemodel.h"
#include "declarativexypoint.h"
Tero Ahola
Proposal for QML data API
r196 #include "declarativescatterseries.h"
Tero Ahola
Dynamic data for QML pie and line series
r215 #include "declarativelineseries.h"
Tero Ahola
Added QML api for bar series
r646 #include "declarativebarseries.h"
Tero Ahola
Dynamic data for QML pie and line series
r215 #include "declarativepieseries.h"
Jani Honkonen
First draft of project structure
r1
Tero Ahola
Proof-of-concept for QML api...
r120 QTCOMMERCIALCHART_BEGIN_NAMESPACE
Jani Honkonen
First draft of project structure
r1
Tero Ahola
Proof-of-concept for QML api...
r120 class ChartQmlPlugin : public QDeclarativeExtensionPlugin
Jani Honkonen
First draft of project structure
r1 {
Q_OBJECT
public:
virtual void registerTypes(const char *uri)
{
Tero Ahola
Proof-of-concept for QML api...
r120 Q_ASSERT(QLatin1String(uri) == QLatin1String("QtCommercial.Chart"));
Tero Ahola
Dynamic data for QML pie and line series
r215
Jani Honkonen
First draft of project structure
r1 qmlRegisterType<DeclarativeChart>(uri, 1, 0, "Chart");
Tero Ahola
d
r722 qmlRegisterType<DeclarativeTableModel>(uri, 1, 0, "ChartTableModel");
qmlRegisterType<DeclarativeXyPoint>(uri, 1, 0, "XyPoint");
Tero Ahola
Proposal for QML data API
r196 qmlRegisterType<DeclarativeScatterSeries>(uri, 1, 0, "ScatterSeries");
Tero Ahola
Dynamic data for QML pie and line series
r215 qmlRegisterType<DeclarativeLineSeries>(uri, 1, 0, "LineSeries");
Tero Ahola
Added QML api for bar series
r646 qmlRegisterType<DeclarativeBarSeries>(uri, 1, 0, "BarSeries");
Tero Ahola
Dynamic data for QML pie and line series
r215 qmlRegisterType<DeclarativePieSeries>(uri, 1, 0, "PieSeries");
Tero Ahola
d
r722 qmlRegisterType<QPieSlice>(uri, 1, 0, "PieSlice");
Jani Honkonen
First draft of project structure
r1 }
};
#include "plugin.moc"
Tero Ahola
Proof-of-concept for QML api...
r120 QTCOMMERCIALCHART_END_NAMESPACE
QTCOMMERCIALCHART_USE_NAMESPACE
Q_EXPORT_PLUGIN2(qtcommercialchartqml, QT_PREPEND_NAMESPACE(ChartQmlPlugin))