mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-09-27 12:34:14 +02:00
219273a8e5
QetGraphicsTableFactory::create() only reads settings already set on an AddTableDialog and never depended on the dialog being shown, so make it public alongside setTableName()/setAdjustTableToFolio()/ setAddNewTableToNewDiagram() on AddTableDialog -- this lets the scripting API build and configure a dialog headlessly instead of exec()'ing one. qet.addTable() requires a non-empty query: ElementQueryWidget and SummaryQueryWidget both default to zero selected columns, so an empty query silently produced a table with no rows rather than a sensible default. qet.tables()/deleteTable() list and remove by a position-sorted index. qet.setTablePosition() repositions one, since newTable() always places a new table at a fixed (50, 50) and a folio with more than one needs to move all but the first itself. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>