mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-22 14:24:13 +02:00
Write the project's numbering from the project database
QETZ-DB-FIRST stage 2b-2. The save writes the numbering schemes and their settings from the project database's numbering rows (2b-1) instead of the project's own lists. The project still keeps the rows in step after each change, and QET_CHECK_NUMBERING_ROWS still says whether the two agree, until the lists go (2b-3). tst_elementautonumids::numberingRowsFollowEveryChange also checks the saved file: the current symbol and wire numbering and the schemes. With setCurrrentElementAutonum() not writing the rows, a save straight after it now names the old scheme in use. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -786,6 +786,14 @@ qet.log('PROBE ' + JSON.stringify({saves: saves}));
|
||||
QVERIFY(xml.contains("title=\"Rows renamed folio\""));
|
||||
QCOMPARE(diagramAttributes(xml, QStringLiteral("conductorAutonum")).value(0),
|
||||
QStringLiteral("Rows renamed conductor"));
|
||||
// and the save, which writes the numbering from the rows (2b-2),
|
||||
// has every scheme and the ones made current
|
||||
const Saved numbering = parse(xml);
|
||||
QCOMPARE(numbering.current, QStringLiteral("Rows renamed element"));
|
||||
QCOMPARE(numbering.scheme_formula.value(QStringLiteral("Rows renamed element")),
|
||||
QStringLiteral("R-%sequ_1"));
|
||||
QCOMPARE(QUuid(numbering.current_id), numbering.scheme_id.value(QStringLiteral("Rows renamed element")));
|
||||
QVERIFY(xml.contains("current_autonum=\"Rows renamed conductor\""));
|
||||
}
|
||||
|
||||
void conductorNumberings()
|
||||
|
||||
Reference in New Issue
Block a user