qt/LedOK/cfg.cpp

11 lines
344 B
C++
Raw Normal View History

2022-08-25 18:37:24 +08:00
#include "cfg.h"
#include <QApplication>
#include <QStandardPaths>
2022-01-20 10:08:17 +08:00
2022-08-25 18:37:24 +08:00
const QString UpdVerUrl = "https://www.ledok.cn/download/definitions/updates.json";
2022-01-20 10:08:17 +08:00
2022-08-25 18:37:24 +08:00
QString programsDir() {
static auto rtn = QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation) + "/" + QApplication::applicationName() + "/NPrograms";
return rtn;
2022-01-20 10:08:17 +08:00
}