From c5ee983905f1ca0cb1706b2e8f1eb09f61ad79d6 Mon Sep 17 00:00:00 2001 From: scorpio810 Date: Wed, 10 Jun 2015 19:31:26 +0000 Subject: [PATCH] Nomemclature: add field element position in the graphic scene to export .csv file git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4003 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- sources/nomenclature.cpp | 2 ++ sources/nomenclature.h | 1 + 2 files changed, 3 insertions(+) diff --git a/sources/nomenclature.cpp b/sources/nomenclature.cpp index bde01c159..7fd986773 100644 --- a/sources/nomenclature.cpp +++ b/sources/nomenclature.cpp @@ -84,6 +84,7 @@ QString nomenclature::getNomenclature() { data += tr("N° de folio") +";" ""+ tr("Titre de folio") +";" ""+ tr("Désignation qet") +";" + ""+ tr("Position") +";" ""+ tr("Label") +";" ""+ tr("Désignation") +";" ""+ tr("Commentaire") +";" @@ -125,6 +126,7 @@ QString nomenclature::getElementInfo(const Element *elmt) { info += QString::number(diagram -> folioIndex()+1) + ";"; info += diagram -> title() + ";"; info += elmt -> name() + ";"; + info += elmt-> diagram()-> convertPosition(elmt -> scenePos()).toString() + ";"; info += elmt_info["label"].toString() + ";"; info += elmt_info["designation"].toString() + ";"; info += elmt_info["comment"].toString() + ";"; diff --git a/sources/nomenclature.h b/sources/nomenclature.h index 0b88e5c1b..3aef586cd 100644 --- a/sources/nomenclature.h +++ b/sources/nomenclature.h @@ -25,6 +25,7 @@ #include "qetgraphicsitem/element.h" #include "diagramcontent.h" #include "qetgraphicsitem/customelement.h" +#include "diagramposition.h" class QETProject; class Diagram;