| 12345678910111213141516171819202122232425262728293031 |
- #ifndef SYSINFOWIDGET_H
- #define SYSINFOWIDGET_H
- #include <QTimer>
- #include <QWidget>
- #include <QtCharts/QChartView>
- /**
- * @brief The SysInfoWidget class
- * The QChartView is the generic widget that can display
- * many types of chat. This class will
- * handle the layout and display the QChartView
- */
- class SysInfoWidget : public QWidget {
- Q_OBJECT
- public:
- explicit SysInfoWidget(QWidget* parent = 0, int startDelayMs = 500,
- int updateSeriesDelayMs = 500);
- protected:
- QChartView& chartView();
- protected slots:
- virtual void updateSeries() = 0;
- private:
- QTimer mRefreshTimer;
- QChartView mChartView;
- };
- #endif // SYSINFOWIDGET_H
|