##// END OF EJS Templates
mingw compiler fix for pie animations
mingw compiler fix for pie animations

File last commit:

r597:fed5cb29c884
r619:f477d377754b
Show More
tablewidget.h
41 lines | 764 B | text/x-c | CLexer
Marek Rosa
Table model data example
r519 #ifndef TABLEWIDGET_H
#define TABLEWIDGET_H
#include <QtGui/QWidget>
#include "qchartview.h"
Marek Rosa
Added support for adding and removing data with model. Updated the example
r545 #include "qxyseries.h"
Marek Rosa
Table model data example
r519
QTCOMMERCIALCHART_USE_NAMESPACE
Marek Rosa
Added support for adding and removing data with model. Updated the example
r545 class CustomTableModel;
class QTableView;
class QRadioButton;
//class QSeries;
Marek Rosa
Table model data example
r519 class TableWidget : public QWidget
{
Q_OBJECT
public:
TableWidget(QWidget *parent = 0);
~TableWidget();
Marek Rosa
Added support for adding and removing data with model. Updated the example
r545 public slots:
Marek Rosa
Model data example updated
r546 void addRowAbove();
void addRowBelow();
Marek Rosa
Added support for adding and removing data with model. Updated the example
r545 void removeRow();
void updateChartType();
Marek Rosa
Table model data example
r519
private:
QChartView* chartView;
Marek Rosa
Added support for adding and removing data with model. Updated the example
r545 QXYSeries* series;
CustomTableModel* m_model;
QTableView* tableView;
QRadioButton* lineRadioButton;
QRadioButton* splineRadioButton;
QRadioButton* scatterRadioButton;
Marek Rosa
Added data from model support to QPieSeries(modify, remove). Data from model example updated
r597 QRadioButton* pieRadioButton;
Marek Rosa
Table model data example
r519 };
#endif // TABLEWIDGET_H