widget.h
31 lines
| 472 B
| text/x-c
|
CLexer
|
r205 | #ifndef WIDGET_H | ||
#define WIDGET_H | ||||
#include <QtGui/QWidget> | ||||
#include <qchartview.h> | ||||
#include <QSqlDatabase> | ||||
QTCOMMERCIALCHART_USE_NAMESPACE | ||||
class QListWidget; | ||||
class Widget : public QWidget | ||||
{ | ||||
Q_OBJECT | ||||
public: | ||||
Widget(QWidget *parent = 0); | ||||
~Widget(); | ||||
public slots: | ||||
void refreshChart(); | ||||
|
r244 | void printChart(); | ||
|
r205 | |||
private: | ||||
QChartView* chartArea; | ||||
QListWidget* countrieslist; | ||||
QListWidget* yearslist; | ||||
QSqlDatabase db; | ||||
}; | ||||
#endif // WIDGET_H | ||||