You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
|
#ifndef FRMCPUMEMORYLABEL_H
|
|
|
|
|
|
#define FRMCPUMEMORYLABEL_H
|
|
|
|
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
|
|
class frmCpuMemoryLabel;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
class frmCpuMemoryLabel : public QWidget
|
|
|
|
|
|
{
|
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
explicit frmCpuMemoryLabel(QWidget *parent = 0);
|
|
|
|
|
|
~frmCpuMemoryLabel();
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
Ui::frmCpuMemoryLabel *ui;
|
|
|
|
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
|
|
void initForm();
|
|
|
|
|
|
//cpu和内存占用情况数值改变信号
|
|
|
|
|
|
void valueChanged(quint64 cpuPercent, quint64 memoryPercent, quint64 memoryAll, quint64 memoryUse, quint64 memoryFree);
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // FRMCPUMEMORYLABEL_H
|