mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-23 15:34:12 +02:00
Move a folio's numbering counters into the project database
QETZ-DB-FIRST stage 2b-4: the unit/ten/hundred-folio sequential counters Diagram tracks per numbering scheme (insertFolioSeqHash()) now write through to a new folio_counter table, keyed by (folio_uuid, owner, level, title, ord). The hashes stay the source for now, same write-through pattern as 2b-1's numbering rows. renameElementAutoNum()/AutoNumSchemeCommand::rename() carry the rows along on a scheme rename. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -245,6 +245,7 @@ void AutoNumSchemeCommand::rename(const QString &from, const QString &to)
|
||||
}
|
||||
}
|
||||
}
|
||||
m_project->dataBase()->renameFolioCounterScheme(QStringLiteral("conductor"), from, to);
|
||||
} else {
|
||||
m_project->removeFolioAutoNum(from);
|
||||
m_project->addFolioAutoNum(to, context);
|
||||
|
||||
Reference in New Issue
Block a user