##// END OF EJS Templates
Integrated scatter type series...
Integrated scatter type series Also added an implementation for creating series graphic items with a simple class derived from QChartSeries.

File last commit:

r42:5fcd249308db
r42:5fcd249308db
Show More
qchartwidget.h
38 lines | 887 B | text/x-c | CLexer
Tero Ahola
Started to refactor the API to allow integrating different plot types
r19 #ifndef QCHARTWIDGET_H
#define QCHARTWIDGET_H
Tero Ahola
Renamed to QtCommercialChart
r30 #include "qchartglobal.h"
Tero Ahola
Started to refactor the API to allow integrating different plot types
r19 #include "qchart.h"
#include <QWidget>
Tero Ahola
Renamed to QtCommercialChart
r30 QTCOMMERCIALCHART_BEGIN_NAMESPACE
Tero Ahola
Started to refactor the API to allow integrating different plot types
r19
Michal Klocek
Refactor current draft to fit int current design specs...
r21 class QChartSeries;
Tero Ahola
Started to refactor the API to allow integrating different plot types
r19 class QChartWidgetPrivate;
Tero Ahola
Renamed to QtCommercialChart
r30 class QTCOMMERCIALCHART_EXPORT QChartWidget : public QWidget
Tero Ahola
Started to refactor the API to allow integrating different plot types
r19 {
Q_OBJECT
public:
explicit QChartWidget(QWidget *parent = 0);
~QChartWidget();
Michal Klocek
Refactor current draft to fit int current design specs...
r21 //implement from QWidget
void resizeEvent(QResizeEvent *event);
Tero Ahola
Added size hint for the widget
r29 QSize sizeHint() const;
Tero Ahola
Started to refactor the API to allow integrating different plot types
r19
Tero Ahola
Integrated scatter type series...
r42 // TODO: addSeries and createSeries are optional solutions
Michal Klocek
Refactor current draft to fit int current design specs...
r21 void addSeries(QChartSeries* series);
Tero Ahola
Integrated scatter type series...
r42 QChartSeries* createSeries(QList<qreal> x, QList<qreal> y, QChartSeries::QChartSeriesType type);
Michal Klocek
Refactor current draft to fit int current design specs...
r21 protected:
QChartWidgetPrivate * const d_ptr;
Tero Ahola
Started to refactor the API to allow integrating different plot types
r19
private:
Q_DISABLE_COPY(QChartWidget)
Michal Klocek
Refactor current draft to fit int current design specs...
r21 Q_DECLARE_PRIVATE(QChartWidget)
Tero Ahola
Started to refactor the API to allow integrating different plot types
r19 };
Tero Ahola
Renamed to QtCommercialChart
r30 QTCOMMERCIALCHART_END_NAMESPACE
Tero Ahola
Started to refactor the API to allow integrating different plot types
r19
#endif // QCHARTWIDGET_H