tablewidget.h
39 lines
| 701 B
| text/x-c
|
CLexer
|
r519 | #ifndef TABLEWIDGET_H | ||
#define TABLEWIDGET_H | ||||
#include <QtGui/QWidget> | ||||
#include "qchartview.h" | ||||
|
r545 | #include "qxyseries.h" | ||
|
r519 | |||
QTCOMMERCIALCHART_USE_NAMESPACE | ||||
|
r545 | class CustomTableModel; | ||
class QTableView; | ||||
class QRadioButton; | ||||
//class QSeries; | ||||
|
r519 | class TableWidget : public QWidget | ||
{ | ||||
Q_OBJECT | ||||
public: | ||||
TableWidget(QWidget *parent = 0); | ||||
~TableWidget(); | ||||
|
r545 | public slots: | ||
void addRow(); | ||||
void removeRow(); | ||||
void updateChartType(); | ||||
|
r519 | |||
private: | ||||
QChartView* chartView; | ||||
|
r545 | QXYSeries* series; | ||
CustomTableModel* m_model; | ||||
QTableView* tableView; | ||||
QRadioButton* lineRadioButton; | ||||
QRadioButton* splineRadioButton; | ||||
QRadioButton* scatterRadioButton; | ||||
|
r519 | }; | ||
#endif // TABLEWIDGET_H | ||||