Merge pull request #1282 from arummler/formula-improvements

Auto numeration: a lot of changes for elements, condutors, sheets
This commit is contained in:
Laurent Trinques
2026-10-04 11:52:56 +02:00
committed by GitHub
52 changed files with 6095 additions and 382 deletions
+15
View File
@@ -645,6 +645,21 @@ target_compile_definitions(tst_derivedwireuuid PRIVATE
"QET_TEST_BINARY_PATH=\"$<TARGET_FILE:qelectrotech>\""
"QET_EXAMPLES_DIR=\"${QET_DIR}/examples\"")
# Element numbering schemes carry an id and elements follow them by it:
# a legacy file gets stable ids on --resave; through --run, rename, edit,
# refused removal and undo/redo keep the elements following the scheme.
if(QET_HAS_SCRIPTING)
add_executable(
tst_elementautonumids
tst_elementautonumids.cpp)
add_test(NAME tst_elementautonumids COMMAND tst_elementautonumids)
add_dependencies(tst_elementautonumids qelectrotech)
target_link_libraries(tst_elementautonumids PRIVATE Qt::Test Qt::Xml)
target_compile_definitions(tst_elementautonumids PRIVATE
"QET_TEST_BINARY_PATH=\"$<TARGET_FILE:qelectrotech>\""
"QET_EXAMPLES_DIR=\"${QET_DIR}/examples\"")
endif()
# Saving a project that was just saved changes nothing: runs the real
# binary's --resave twice on every project in examples/, and on one whose
# title block holds a single-space value (#973).
File diff suppressed because it is too large Load Diff