mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-03 17:34:12 +02:00
Merge branch 'master' into fix/pdf-landscape-paper-size
This commit is contained in:
@@ -627,6 +627,12 @@ QHash<Element *, int> folioIndex(QETProject &project)
|
||||
/// From-to wiring list: one row per conductor, each endpoint resolved to its
|
||||
/// element label and terminal name.
|
||||
///
|
||||
/// Most symbols leave their terminals unnamed, so each end also carries the
|
||||
/// terminal's index -- the one the scripting API's addConductor() takes,
|
||||
/// empty for two terminals at one point -- and its uuid, the one the project
|
||||
/// file names the terminal by. These come last, after the columns the list
|
||||
/// has always had, so a reader of those is not disturbed.
|
||||
///
|
||||
/// Reads wiring_list_view out of the project database. --export-cables produces
|
||||
/// the same logical list from the document XML instead, and the two are meant
|
||||
/// to agree: running both and diffing them is a direct check that the database
|
||||
@@ -639,7 +645,8 @@ int exportWiring(QETProject &project, const QString &output)
|
||||
|
||||
static const QStringList columns {
|
||||
"wire_number", "from_element_label", "from_terminal",
|
||||
"to_element_label", "to_terminal", "diagram_position", "conductor_uuid"
|
||||
"to_element_label", "to_terminal", "diagram_position", "conductor_uuid",
|
||||
"from_terminal_index", "from_terminal_uuid", "to_terminal_index", "to_terminal_uuid"
|
||||
};
|
||||
|
||||
QSqlQuery query = project.dataBase()->newQuery(
|
||||
|
||||
Reference in New Issue
Block a user