##// END OF EJS Templates
Added data from model support to QPieSeries(modify, remove). Data from model example updated
Added data from model support to QPieSeries(modify, remove). Data from model example updated

File last commit:

r597:fed5cb29c884
r597:fed5cb29c884
Show More
tablewidget.h
41 lines | 764 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 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;
};
#endif // TABLEWIDGET_H