Newer
Older
SurgeTankControl / alarmstatisticsform.h
[wangxitong] on 27 Jan 2022 711 bytes first commit
#ifndef ALARMSTATISTICSFORM_H
#define ALARMSTATISTICSFORM_H

#include   <QChartView>
#include   <QSplineSeries>
using namespace QtCharts;
#include <QWidget>
#include <QDate>

namespace Ui {
class AlarmStatisticsForm;
}

class AlarmStatisticsForm : public QWidget
{
    Q_OBJECT

public:
    explicit AlarmStatisticsForm(QString username="",QWidget *parent = nullptr);
    bool eventFilter(QObject *obj, QEvent *event);
    ~AlarmStatisticsForm();
    QString username;
private:
    Ui::AlarmStatisticsForm *ui;
    QChart *initchart() const;

private slots:
    void updateLastDate1(QDate);
    void updateLastDate2(QDate);
    void showlinetwo();
    void updatechart();
};

#endif // ALARMSTATISTICSFORM_H