##// END OF EJS Templates
Better way to enable features to user. Do less, but expose signals to user and allow user to descide what to do.
Better way to enable features to user. Do less, but expose signals to user and allow user to descide what to do.

File last commit:

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