mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-16 17:11:37 +08:00
应用详情页添加分享和请求更新按钮,设置页面添加更新客户端和清理缓存、读取缓存大小功能
This commit is contained in:
@@ -8,6 +8,8 @@
|
||||
#include <QSettings>
|
||||
#include <QtConcurrent>
|
||||
#include "../backend/sparkapi.h"
|
||||
#define TMP_PATH "/tmp/spark-store"
|
||||
|
||||
namespace Ui {
|
||||
class SettingsPage;
|
||||
}
|
||||
@@ -17,6 +19,8 @@ class SettingsPage : public QWidget
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
static void setIsDownload(bool isdownload);
|
||||
void updateUI();
|
||||
explicit SettingsPage(QWidget *parent = nullptr);
|
||||
void setTheme(bool dark);
|
||||
~SettingsPage();
|
||||
@@ -26,11 +30,22 @@ private slots:
|
||||
|
||||
void on_comboBox_server_currentIndexChanged(const QString &arg1);
|
||||
|
||||
void on_pushButton_updateApt_clicked();
|
||||
|
||||
void on_pushButton_clear_clicked();
|
||||
|
||||
void on_pushButton_clearWebCache_clicked();
|
||||
|
||||
private:
|
||||
static bool isdownload;
|
||||
bool configCanSave;
|
||||
quint64 dirFileSize(const QString &path);
|
||||
void readServerList();
|
||||
void initConfig();
|
||||
Ui::SettingsPage *ui;
|
||||
|
||||
signals:
|
||||
void openUrl(QUrl spk);
|
||||
};
|
||||
|
||||
#endif // SETTINGSPAGE_H
|
||||
|
||||
Reference in New Issue
Block a user