#ifndef SYSINFOWIDGET_H #define SYSINFOWIDGET_H #include #include #include /** * @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