[qet] [3342] Nomenclature

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 3342
Author:   scorpio810
Date:     2014-10-04 15:15:21 +0200 (Sat, 04 Oct 2014)
Log Message:
-----------
Nomenclature
Added elementInformations: label, comment, manufacturer, manufacturer-reference, machine-manufacturer-reference to list

Modified Paths:
--------------
    trunk/sources/nomenclature.cpp

Modified: trunk/sources/nomenclature.cpp
===================================================================
--- trunk/sources/nomenclature.cpp	2014-10-03 17:02:01 UTC (rev 3341)
+++ trunk/sources/nomenclature.cpp	2014-10-04 13:15:21 UTC (rev 3342)
@@ -50,7 +50,7 @@
 	
 	//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; i<m_list_diagram.count(); i++){
 		rows = getRows(m_list_diagram.at(i));
@@ -100,7 +100,12 @@
 		row += QString::number(0) + ";";
 		row += QString::number(0) + ";";
 		row += schema->title() + ";";
-		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;


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/