mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-06 11:14:14 +02:00
Merge pull request #1318 from ispyisail/feature/bom-skip-junctions-slaves
Linux build and tests / Build and test (Qt 6, Debug) (push) Failing after 2m7s
Linux build and tests / Build and test (Qt 6, Debug) (push) Failing after 2m7s
Add options to leave junctions and contact blocks out of the parts list
This commit is contained in:
@@ -325,9 +325,13 @@ bool QetScriptApi::exportWires(const QString &output)
|
||||
return runFlag(QStringLiteral("--export-wires"), {output});
|
||||
}
|
||||
|
||||
bool QetScriptApi::exportBom(const QString &output)
|
||||
bool QetScriptApi::exportBom(const QString &output, bool noSlaves,
|
||||
bool noJunctions)
|
||||
{
|
||||
return runFlag(QStringLiteral("--export-bom"), {output});
|
||||
QStringList args{output};
|
||||
if (noSlaves) args << QStringLiteral("--no-slaves");
|
||||
if (noJunctions) args << QStringLiteral("--no-junctions");
|
||||
return runFlag(QStringLiteral("--export-bom"), args);
|
||||
}
|
||||
|
||||
bool QetScriptApi::exportWiring(const QString &output)
|
||||
|
||||
Reference in New Issue
Block a user