37 lines
584 B
C
37 lines
584 B
C
|
|
#ifndef SYSTEMSELFCHECK_H
|
||
|
|
#define SYSTEMSELFCHECK_H
|
||
|
|
|
||
|
|
#include <QWidget>
|
||
|
|
#include <QtCharts>
|
||
|
|
#include <QtCharts/QPieSeries>
|
||
|
|
#include <QtCharts/QPieSlice>
|
||
|
|
|
||
|
|
namespace Ui {
|
||
|
|
class CSystemSelfcheck;
|
||
|
|
}
|
||
|
|
|
||
|
|
class CSystemSelfcheck : public QWidget
|
||
|
|
{
|
||
|
|
Q_OBJECT
|
||
|
|
|
||
|
|
public:
|
||
|
|
explicit CSystemSelfcheck(QWidget *parent = nullptr);
|
||
|
|
~CSystemSelfcheck();
|
||
|
|
|
||
|
|
private:
|
||
|
|
Ui::CSystemSelfcheck *ui;
|
||
|
|
QChartView * m_ChartView;
|
||
|
|
QLabel * m_centerLabel;
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
void initPieChart();
|
||
|
|
void bulidPieChart(int percent);
|
||
|
|
void resizeEvent(QResizeEvent *event);
|
||
|
|
|
||
|
|
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif // SYSTEMSELFCHECK_H
|