##// END OF EJS Templates
Fine tuning the auto test scripts
Fine tuning the auto test scripts

File last commit:

r1130:2b935e4f3207
r1138:9ac9f1032801
Show More
plugin.cpp
66 lines | 2.4 KiB | text/x-c | CppLexer
Jani Honkonen
Add/modify license headers
r830 /****************************************************************************
**
** Copyright (C) 2012 Digia Plc
** All rights reserved.
** For any questions to Digia, please use contact form at http://qt.digia.com
**
** This file is part of the Qt Commercial Charts Add-on.
**
** $QT_BEGIN_LICENSE$
** Licensees holding valid Qt Commercial licenses may use this file in
** accordance with the Qt Commercial License Agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
** contact form at http://qt.digia.com
** $QT_END_LICENSE$
**
****************************************************************************/
Jani Honkonen
First draft of project structure
r1 #include <QtDeclarative/qdeclarativeextensionplugin.h>
#include <QtDeclarative/qdeclarative.h>
Tero Ahola
QML api to use chart theme enum of QChart
r836 #include "qchart.h"
Jani Honkonen
First draft of project structure
r1 #include "declarativechart.h"
Tero Ahola
Added axis to QML api
r1096 #include "declarativeaxis.h"
Tero Ahola
d
r722 #include "declarativexypoint.h"
Tero Ahola
Dynamic data for QML pie and line series
r215 #include "declarativelineseries.h"
Tero Ahola
Spline to QML API
r732 #include "declarativesplineseries.h"
Tero Ahola
Added area series to QML api
r847 #include "declarativeareaseries.h"
Tero Ahola
Spline to QML API
r732 #include "declarativescatterseries.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"
Tero Ahola
Draft version for QML PieSeries model API
r1130 #include "declarativepiemodel.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
Tero Ahola
Draft version for QML PieSeries model API
r1130 qmlRegisterType<DeclarativeChart>(uri, 1, 0, "ChartView");
Tero Ahola
Added axis to QML api
r1096 qmlRegisterType<DeclarativeAxis>(uri, 1, 0, "Axis");
Tero Ahola
d
r722 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
Spline to QML API
r732 qmlRegisterType<DeclarativeSplineSeries>(uri, 1, 0, "SplineSeries");
Tero Ahola
Added area series to QML api
r847 qmlRegisterType<DeclarativeAreaSeries>(uri, 1, 0, "AreaSeries");
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");
Tero Ahola
Draft version for QML PieSeries model API
r1130 // TODO: a declarative model for each type
qmlRegisterType<DeclarativePieModel>(uri, 1, 0, "PieModel");
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))