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
+5 -1
View File
@@ -16,6 +16,7 @@
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
*/
#include "diagramview.h"
#include "autoNum/ui/pastenumberingimport.h"
#include "cellruler.h"
#include "lastusedstyle.h"
#include "utils/colordialogdoubleclick.h"
@@ -572,7 +573,10 @@ void DiagramView::paste(const QPointF &pos, QClipboard::Mode clipboard_mode) {
if (content_pasted.count())
{
m_diagram -> clearSelection();
m_diagram -> undoStack().push(new PasteDiagramCommand(m_diagram, content_pasted));
//Asks whether to import the numberings the copy brings, if the
//project has not got them
PasteNumberingImport::push(this, m_diagram, content_pasted,
PasteNumberingImport::copiedBy(document_xml));
adjustSceneRect();
}
}