更新使用手册;修复滚动条问题;新增表映射关系查询

This commit is contained in:
taocong
2026-10-05 10:49:50 +08:00
committed by taocong45644
parent e7030a6dbf
commit 84009be804
26 changed files with 2089 additions and 37 deletions
+8 -1
View File
@@ -20,7 +20,7 @@
namespace {
// V2 默认值(契约 docs/转码配置格式契约.md): core 默认 ucbp, 柜面接口默认否;
// V2 默认值(契约 详细设计文档.md §7.5): core 默认 ucbp, 柜面接口默认否;
// dialect 不落 UI, 保存时由 core 派生(ucbp/uses→mdb, uarg/usms→db)
bool validateLsFunctionNames(QWidget *parent, const QStringList &functionNames)
@@ -355,6 +355,11 @@ bool BatchConvertPage::saveConfig(const QStringList &funcList)
}
// 5. 原子写回(二进制模式: 内容字节原样落盘, 不做任何换行转换)
// 保存窗口: 写入前开启, 窗口期内 QSaveFile 替换目标文件引发的
// fileChanged/directoryChanged 监控事件直接忽略, 防止自身保存触发重载
// (重载会 refreshTable 强制 scrollToTop, 表现为下拉选择后滚动条回顶);
// 失败路径(打开/提交失败)由组件 2s 兜底自动关窗
m_configMonitor->beginSaveWindow();
QSaveFile saveFile(configFilePath());
if (!saveFile.open(QIODevice::WriteOnly)) {
LogManager::instance()->logError(
@@ -368,6 +373,8 @@ bool BatchConvertPage::saveConfig(const QStringList &funcList)
return false;
}
// 程序自身写入后更新监控 mtime 基准, 避免触发无谓的重载
m_configMonitor->endSave();
return true;
}