src/ChartCarbonate.h

changeset 371
d03a426e0b6b
parent 332
146874d7bb47
equal deleted inserted replaced
370:a730825bc5e4 371:d03a426e0b6b
1 #ifndef _CHARTCARBONATE_H 1 #ifndef _CHARTCARBONATE_H
2 #define _CHARTCARBONATE_H 2 #define _CHARTCARBONATE_H
3
4 #include "MainWindow.h"
3 5
4 #include <QDialog> 6 #include <QDialog>
5 #include <QDialogButtonBox> 7 #include <QDialogButtonBox>
6 8
9 class Callout;
7 10
8 namespace Ui { 11 namespace Ui {
9 class ChartCarbonate; 12 class ChartCarbonate;
10 } 13 }
11 14
12 class ChartCarbonate : public QDialog 15 class ChartCarbonate : public QDialog
13 { 16 {
14 Q_OBJECT 17 Q_OBJECT
15 18
19 private slots:
20 void savePNG();
21
22 public slots:
23 void tooltip(QPointF point, bool state);
24
16 public: 25 public:
17 explicit ChartCarbonate(QString code, QString name, QWidget *parent = 0); 26 explicit ChartCarbonate(QString code, QString name, QWidget *parent = 0);
18 ~ChartCarbonate(); 27 ~ChartCarbonate();
19 28
29 private:
30 QChartView *chartView;
31 QChart *chart;
32 Callout *t_tooltip = 0;
33 QSplineSeries *temperature, *pressure;
20 }; 34 };
21 35
22 #endif 36 #endif

mercurial