##// END OF EJS Templates

File last commit:

r268:bd1ae0fe1b01
r269:05d1d227ed47 merge
Show More
widget.h
36 lines | 633 B | text/x-c | CLexer
Marek Rosa
Initial commit for gdpBarChart example.
r205 #ifndef WIDGET_H
#define WIDGET_H
#include <QtGui/QWidget>
#include <qchartview.h>
Marek Rosa
Added another chart type choice
r268 #include <qbarchartseries.h>
Marek Rosa
Initial commit for gdpBarChart example.
r205 #include <QSqlDatabase>
QTCOMMERCIALCHART_USE_NAMESPACE
class QListWidget;
Marek Rosa
Added another chart type choice
r268 class QRadioButton;
Marek Rosa
Initial commit for gdpBarChart example.
r205
class Widget : public QWidget
{
Q_OBJECT
public:
Widget(QWidget *parent = 0);
~Widget();
public slots:
void refreshChart();
Marek Rosa
Added chart printing to pdf
r244 void printChart();
Marek Rosa
Initial commit for gdpBarChart example.
r205
private:
QChartView* chartArea;
QListWidget* countrieslist;
QListWidget* yearslist;
QSqlDatabase db;
Marek Rosa
Added another chart type choice
r268 QBarChartSeries* series0;
QRadioButton* barChartRadioButton;
QRadioButton* scatterChartRadioButton;
Marek Rosa
Initial commit for gdpBarChart example.
r205 };
#endif // WIDGET_H