##// END OF EJS Templates
adds QChartView PIMPL, refactor public API
adds QChartView PIMPL, refactor public API

File last commit:

r735:8b3d19ded350
r746:646ccd5c026b
Show More
tablewidget.h
45 lines | 882 B | text/x-c | CLexer
#ifndef TABLEWIDGET_H
#define TABLEWIDGET_H
#include <QtGui/QWidget>
#include "qchartview.h"
#include "qxyseries.h"
QTCOMMERCIALCHART_USE_NAMESPACE
class CustomTableModel;
class QTableView;
class QRadioButton;
class QSpinBox;
//class QSeries;
class TableWidget : public QWidget
{
Q_OBJECT
public:
TableWidget(QWidget *parent = 0);
~TableWidget();
public slots:
void addRowAbove();
void addRowBelow();
void removeRow();
void updateChartType();
private:
QChartView* chartView;
QXYSeries* series;
CustomTableModel* m_model;
QTableView* tableView;
QRadioButton* lineRadioButton;
QRadioButton* splineRadioButton;
QRadioButton* scatterRadioButton;
QRadioButton* pieRadioButton;
QRadioButton* areaRadioButton;
QRadioButton* barRadioButton;
QSpinBox* linesCountSpinBox;
};
#endif // TABLEWIDGET_H