@@ -1,54 +1,54 | |||||
1 | /**************************************************************************** |
|
1 | /**************************************************************************** | |
2 | ** |
|
2 | ** | |
3 | ** Copyright (C) 2012 Digia Plc |
|
3 | ** Copyright (C) 2012 Digia Plc | |
4 | ** All rights reserved. |
|
4 | ** All rights reserved. | |
5 | ** For any questions to Digia, please use contact form at http://qt.digia.com |
|
5 | ** For any questions to Digia, please use contact form at http://qt.digia.com | |
6 | ** |
|
6 | ** | |
7 | ** This file is part of the Qt Commercial Charts Add-on. |
|
7 | ** This file is part of the Qt Commercial Charts Add-on. | |
8 | ** |
|
8 | ** | |
9 | ** $QT_BEGIN_LICENSE$ |
|
9 | ** $QT_BEGIN_LICENSE$ | |
10 | ** Licensees holding valid Qt Commercial licenses may use this file in |
|
10 | ** Licensees holding valid Qt Commercial licenses may use this file in | |
11 | ** accordance with the Qt Commercial License Agreement provided with the |
|
11 | ** accordance with the Qt Commercial License Agreement provided with the | |
12 | ** Software or, alternatively, in accordance with the terms contained in |
|
12 | ** Software or, alternatively, in accordance with the terms contained in | |
13 | ** a written agreement between you and Digia. |
|
13 | ** a written agreement between you and Digia. | |
14 | ** |
|
14 | ** | |
15 | ** If you have questions regarding the use of this file, please use |
|
15 | ** If you have questions regarding the use of this file, please use | |
16 | ** contact form at http://qt.digia.com |
|
16 | ** contact form at http://qt.digia.com | |
17 | ** $QT_END_LICENSE$ |
|
17 | ** $QT_END_LICENSE$ | |
18 | ** |
|
18 | ** | |
19 | ****************************************************************************/ |
|
19 | ****************************************************************************/ | |
20 |
|
20 | |||
21 | #ifndef WIDGET_H |
|
21 | #ifndef WIDGET_H | |
22 | #define WIDGET_H |
|
22 | #define WIDGET_H | |
23 |
|
23 | |||
24 | #include <QtGui/QWidget> |
|
24 | #include <QtGui/QWidget> | |
25 | #include <QChartView> |
|
25 | #include <QChartView> | |
26 | #include <QSqlDatabase> |
|
26 | #include <QSqlDatabase> | |
27 |
|
27 | |||
28 | QTCOMMERCIALCHART_USE_NAMESPACE |
|
28 | QTCOMMERCIALCHART_USE_NAMESPACE | |
29 |
|
29 | |||
30 | class QListWidget; |
|
30 | class QListWidget; | |
31 | class QRadioButton; |
|
31 | class QRadioButton; | |
32 |
|
32 | |||
33 | class Widget : public QWidget |
|
33 | class Widget : public QWidget | |
34 | { |
|
34 | { | |
35 | Q_OBJECT |
|
35 | Q_OBJECT | |
36 |
|
36 | |||
37 | public: |
|
37 | public: | |
38 | Widget(QWidget *parent = 0); |
|
38 | Widget(QWidget *parent = 0); | |
39 | ~Widget(); |
|
39 | ~Widget(); | |
40 |
|
40 | |||
41 | public slots: |
|
41 | public slots: | |
42 | void refreshChart(); |
|
42 | void refreshChart(); | |
43 | void printChart(); |
|
43 | void printChart(); | |
44 |
|
44 | |||
45 | private: |
|
45 | private: | |
46 | QChartView* chartView; |
|
46 | QChartView* chartView; | |
47 | QListWidget* countrieslist; |
|
47 | QListWidget* countrieslist; | |
48 | QListWidget* yearslist; |
|
48 | QListWidget* yearslist; | |
49 | QSqlDatabase db; |
|
49 | QSqlDatabase db; | |
50 | QRadioButton* barChartRadioButton; |
|
50 | QRadioButton* barChartRadioButton; | |
51 | QRadioButton* scatterChartRadioButton; |
|
51 | QRadioButton* scatterChartRadioButton; | |
52 | }; |
|
52 | }; | |
53 |
|
53 | |||
54 | #endif // WIDGET_H |
|
54 | #endif // WIDGET_H |
General Comments 0
You need to be logged in to leave comments.
Login now