src/ChartiSpindel.h

changeset 371
d03a426e0b6b
parent 333
499c95108bbd
child 438
e06b04ef1579
equal deleted inserted replaced
370:a730825bc5e4 371:d03a426e0b6b
1 #ifndef _CHARTISPINDEL_H 1 #ifndef _CHARTISPINDEL_H
2 #define _CHARTISPINDEL_H 2 #define _CHARTISPINDEL_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 ChartiSpindel; 12 class ChartiSpindel;
10 } 13 }
11 14
12 class ChartiSpindel : public QDialog 15 class ChartiSpindel : 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 ChartiSpindel(QString code, QString name, QWidget *parent = 0); 26 explicit ChartiSpindel(QString code, QString name, QWidget *parent = 0);
18 ~ChartiSpindel(); 27 ~ChartiSpindel();
19 28
29 private:
30 QChartView *chartView;
31 QChart *chart;
32 Callout *t_tooltip = 0;
33 QSplineSeries *temperature, *density, *battery;
20 }; 34 };
21 35
22 #endif 36 #endif

mercurial