From bf63815bceddf4162b9389d48a8c56c74f95e31c Mon Sep 17 00:00:00 2001 From: cfdev Date: Thu, 18 Apr 2013 15:53:06 +0000 Subject: [PATCH] Apply the default text with the removeNum_ofDiagram function. (sorry for the last comment, it's removeNum_ofDiagram function) git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2118 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- sources/conductorautonumerotation.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/sources/conductorautonumerotation.cpp b/sources/conductorautonumerotation.cpp index 8ac4f0641..3af80a4a9 100644 --- a/sources/conductorautonumerotation.cpp +++ b/sources/conductorautonumerotation.cpp @@ -84,19 +84,15 @@ void ConductorAutoNumerotation::setNumStrategy() { /** - * @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 Conductors = dg -> content().conductors(); // Browse all conductors and set the default value for (int i=0; i setText( Conductor_DefaultText ); + Conductors.at(i) -> setText( dg ->defaultConductorProperties.text ); } }