mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-15 21:32:05 +08:00
将版本特性信息写入 json,运行时解析文件信息并初始化版本特性对话框 Log: 添加版本特性 json 文件以及解析文件相关函数,用于构造版本特性对话框;版本号维护放入 src/assets/json/features.json 中统一管理,不再修改 main 函数,运行时从 json 文件读取并显示 * 该提交需要在低版本 DTK 验证能否正常编译运行
21 lines
449 B
C++
21 lines
449 B
C++
#ifndef UTILS_H
|
|
#define UTILS_H
|
|
|
|
#include <QObject>
|
|
#include <QJsonObject>
|
|
|
|
class Utils
|
|
{
|
|
public:
|
|
static void sendNotification(const QString &icon, const QString &title, const QString &body);
|
|
static bool isDDE();
|
|
static bool isWayland();
|
|
static void initConfig();
|
|
static bool isUOS();
|
|
static void setQPAPlatform();
|
|
static void checkUOSDeveloperMode();
|
|
static QJsonObject parseFeatureJsonFile();
|
|
};
|
|
|
|
#endif // UTILS_H
|