widget.h
36 lines
| 623 B
| text/x-c
|
CLexer
Marek Rosa
|
r205 | #ifndef WIDGET_H | ||
#define WIDGET_H | ||||
#include <QtGui/QWidget> | ||||
#include <qchartview.h> | ||||
sauimone
|
r338 | #include <qbarseries.h> | ||
Marek Rosa
|
r205 | #include <QSqlDatabase> | ||
QTCOMMERCIALCHART_USE_NAMESPACE | ||||
class QListWidget; | ||||
Marek Rosa
|
r268 | class QRadioButton; | ||
Marek Rosa
|
r205 | |||
class Widget : public QWidget | ||||
{ | ||||
Q_OBJECT | ||||
public: | ||||
Widget(QWidget *parent = 0); | ||||
~Widget(); | ||||
public slots: | ||||
void refreshChart(); | ||||
Marek Rosa
|
r244 | void printChart(); | ||
Marek Rosa
|
r205 | |||
private: | ||||
QChartView* chartArea; | ||||
QListWidget* countrieslist; | ||||
QListWidget* yearslist; | ||||
QSqlDatabase db; | ||||
sauimone
|
r338 | QBarSeries* series0; | ||
Marek Rosa
|
r268 | QRadioButton* barChartRadioButton; | ||
QRadioButton* scatterChartRadioButton; | ||||
Marek Rosa
|
r205 | }; | ||
#endif // WIDGET_H | ||||