From 789fdb71e1def200c03952611c2985e55c1fa818 Mon Sep 17 00:00:00 2001 From: scorpio810 Date: Sat, 4 Oct 2014 13:15:21 +0000 Subject: [PATCH] Nomenclature Added elementInformations: label, comment, manufacturer, manufacturer-reference, machine-manufacturer-reference to list git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3342 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- sources/nomenclature.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/sources/nomenclature.cpp b/sources/nomenclature.cpp index 765b56508..b17999237 100644 --- a/sources/nomenclature.cpp +++ b/sources/nomenclature.cpp @@ -50,7 +50,7 @@ bool nomenclature::saveToCSVFile() { //Process... QString data = tr("NOMENCLATURE : ") + m_project -> title() + "\n\n"; - data += tr("Ref") +";"+ tr("Folio") +";"+ tr("Sch\351ma") +";"+ tr("D\351signation\n"); + data += tr("Ref") +";"+ tr("Folio") +";"+ tr("Sch\351ma") +";"+ tr("D\351signation")+";"+ tr("Label") +";"+ tr("Commententaire") +";"+ tr("Fabriquant") +";"+ tr("Reference") +";"+ tr("Machine-reference\n"); QStringList rows; for(int i=0; ititle() + ";"; - row += elements_list.at(j)->name() + "\n"; + row += elements_list.at(j)->name() + ";"; + row += elements_list.at(j)->elementInformations()["label"].toString() + ";"; + row += elements_list.at(j)->elementInformations()["comment"].toString() + ";"; + row += elements_list.at(j)->elementInformations()["manufacturer"].toString() + ";"; + row += elements_list.at(j)->elementInformations()["manufacturer-reference"].toString() + ";"; + row += elements_list.at(j)->elementInformations()["machine-manufacturer-reference"].toString() + "\n"; list << row; } return list;