##// END OF EJS Templates
The test app now preserves series type selection
The test app now preserves series type selection

File last commit:

r26:aa0e09b6abc0
r26:aa0e09b6abc0
Show More
mainwidget.h
43 lines | 947 B | text/x-c | CLexer
Tero Ahola
New features like chart type to the test app
r5 #ifndef MAINWIDGET_H
#define MAINWIDGET_H
Tero Ahola
Started to refactor the API to allow integrating different plot types
r19 #include <qchartconfig.h>
#include <qchartwidget.h>
Tero Ahola
New features like chart type to the test app
r5 #include <QWidget>
Tero Ahola
Added auto scaling option to test app
r6 class QSpinBox;
Tero Ahola
Drafting scatter type plotting...
r8 class QCheckBox;
Tero Ahola
New features like chart type to the test app
r5
Tero Ahola
Started to refactor the API to allow integrating different plot types
r19 QCHART_USE_NAMESPACE
Tero Ahola
New features like chart type to the test app
r5 class MainWidget : public QWidget
{
Q_OBJECT
public:
explicit MainWidget(QWidget *parent = 0);
signals:
private slots:
void chartTypeChanged(int itemIndex);
Tero Ahola
Started to refactor the API to allow integrating different plot types
r19 void addSeries();
Tero Ahola
Test app now adds n data series of different type
r20 void addSeries(QString series, QString data);
Tero Ahola
Added test data
r16 void testDataChanged(int itemIndex);
Tero Ahola
New features like chart type to the test app
r5 void backgroundChanged(int itemIndex);
Tero Ahola
Added auto scaling option to test app
r6 void autoScaleChanged(int value);
Tero Ahola
New features like chart type to the test app
r5 void xMinChanged(int value);
void xMaxChanged(int value);
void yMinChanged(int value);
void yMaxChanged(int value);
private:
Tero Ahola
Drafting scatter type plotting...
r8 QChartWidget *m_chartWidget;
QCheckBox *m_autoScaleCheck;
Tero Ahola
Added auto scaling option to test app
r6 QSpinBox *m_xMinSpin;
QSpinBox *m_xMaxSpin;
QSpinBox *m_yMinSpin;
QSpinBox *m_yMaxSpin;
Tero Ahola
The test app now preserves series type selection
r26 QString m_defaultSeries;
Tero Ahola
New features like chart type to the test app
r5 };
#endif // MAINWIDGET_H