src/ChartiSpindel.h

changeset 371
d03a426e0b6b
parent 333
499c95108bbd
child 438
e06b04ef1579
--- a/src/ChartiSpindel.h	Tue Jul 26 11:15:37 2022 +0200
+++ b/src/ChartiSpindel.h	Tue Jul 26 14:26:50 2022 +0200
@@ -1,9 +1,12 @@
 #ifndef _CHARTISPINDEL_H
 #define _CHARTISPINDEL_H
 
+#include "MainWindow.h"
+
 #include <QDialog>
 #include <QDialogButtonBox>
 
+class Callout;
 
 namespace Ui {
 class ChartiSpindel;
@@ -13,10 +16,21 @@
 {
     Q_OBJECT
 
+private slots:
+    void savePNG();
+
+public slots:
+    void tooltip(QPointF point, bool state);
+
 public:
     explicit ChartiSpindel(QString code, QString name, QWidget *parent = 0);
     ~ChartiSpindel();
 
+private:
+    QChartView *chartView;
+    QChart *chart;
+    Callout *t_tooltip = 0;
+    QSplineSeries *temperature, *density, *battery;
 };
 
 #endif

mercurial