[qet] [2118] Apply the default text with the removeNum_ofDiagram function.

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


Revision: 2118
Author:   cfdev
Date:     2013-04-18 17:53:06 +0200 (Thu, 18 Apr 2013)
Log Message:
-----------
Apply the default text with the removeNum_ofDiagram function. (sorry for the last comment, it's removeNum_ofDiagram function)

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

Modified: trunk/sources/conductorautonumerotation.cpp
===================================================================
--- trunk/sources/conductorautonumerotation.cpp	2013-04-18 08:00:09 UTC (rev 2117)
+++ trunk/sources/conductorautonumerotation.cpp	2013-04-18 15:53:06 UTC (rev 2118)
@@ -84,19 +84,15 @@
 
 
 /**
- * @brief ConductorAutoNumerotation::removeNum_ofDiagram
- * @param dg the diagram to remove text of Conductor
+ * @brief Set the default text to all conductors of the diagram
+ * @param dg the diagram
  */
 void ConductorAutoNumerotation::removeNum_ofDiagram(Diagram *dg) {
-	// Setting of application
-	QSettings &qet_settings = QETApp::settings();
-	// Get the default text of conductor from conf file
-	QString Conductor_DefaultText = qet_settings.value("defaultconductortext", "_").toString();
 	// Get all conductors presents in diagram
 	QList<Conductor *> Conductors = dg -> content().conductors();
 	// Browse all conductors and set the default value
 	for (int i=0; i<Conductors.count(); i++) {
-		Conductors.at(i) -> setText( Conductor_DefaultText );
+		Conductors.at(i) -> setText( dg ->defaultConductorProperties.text );
 	}
 }
 


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