?? cpuplot.h
字號:
#include <qwt_plot.h>#include "cpustat.h"#define HISTORY 60 // secondsclass QwtPlotCurve;class CpuPlot : public QwtPlot { Q_OBJECTpublic: enum CpuData { User, System, Total, Idle, NCpuData }; CpuPlot(QWidget * = 0); const QwtPlotCurve *cpuCurve(int id) const { return data[id].curve; }protected: void timerEvent(QTimerEvent *e);private slots: void showCurve(QwtPlotItem *, bool on);private: struct { QwtPlotCurve *curve; double data[HISTORY]; } data[NCpuData]; double timeData[HISTORY]; int dataCount; CpuStat cpuStat;};
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -