Refactor system page in GUI Alpha.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user