mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-13 12:22:05 +08:00
新增了配置的保存,以及第一次打开程序时安装默认配置
This commit is contained in:
@@ -22,7 +22,7 @@ namespace SpkUi
|
||||
SpkDownloadMgr *mDownloadMgr;
|
||||
QMap<uint, SpkDownloadEntry*> mEntries;
|
||||
uint mNextDownloadId;
|
||||
QQueue<QPair<int, QString>> mWaitingDownloads;
|
||||
QQueue<QPair<uint, QString>> mWaitingDownloads;
|
||||
enum { Idle, Waiting, Downloading } mCurrentStatus;
|
||||
|
||||
// UI
|
||||
|
||||
@@ -37,6 +37,8 @@ class SpkConfig : public QObject
|
||||
QVariant ReadField(QString key, QVariant defaultValue);
|
||||
// Wrapper of QSettings::setValue, used for "set and restart to take effect" configurations
|
||||
void SetSettings(QString key, QVariant value);
|
||||
// Wrapper of QSettings::sync
|
||||
void Sync();
|
||||
|
||||
private:
|
||||
QSettings mSettings;
|
||||
|
||||
Reference in New Issue
Block a user