Refactor system page in GUI Alpha.

This commit is contained in:
sunwen
2024-04-25 14:37:38 +08:00
parent f9eb807fa3
commit 982b54b727
420 changed files with 23907 additions and 872 deletions

View File

@@ -4,6 +4,9 @@
#include <QWidget>
class QVBoxLayout;
class DiskInfoWorker;
class BatteryWidget;
class QLabel;
class GeneralForm : public QWidget
{
@@ -11,9 +14,27 @@ class GeneralForm : public QWidget
public:
explicit GeneralForm(QWidget* aParent = nullptr);
~GeneralForm();
private:
void updateStorageSize();
void updateStorageUsed();
void updateDiskInfo(bool aFlag, double aUsedSize);
void initDiskInfo(bool aFlag, double aTotalSize, double aUsedSize);
private:
QVBoxLayout* mLayout;
QThread* mDiskInfoCaller;
double mDiskSize;
double mDiskUsedSize;
bool mDiskSizeFlag;
bool mDiskUsedSizeFlag;
DiskInfoWorker* mDiskInfoWorker;
BatteryWidget* mDiskIcon;
QLabel* mDiskSizeLabel;
QLabel* mDiskUsedLabel;
};
#endif // GENERALFORM_H
#endif // GENERALFORM_H