[qet] qet/qet: [5247] Element editor : it is no longer required to have a text field, for save the edited element

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


Revision: 5247
Author:   blacksun
Date:     2018-02-26 16:35:10 +0100 (Mon, 26 Feb 2018)
Log Message:
-----------
Element editor : it is no longer required to have a text field, for save the edited element

Modified Paths:
--------------
    trunk/sources/editor/qetelementeditor.cpp

Modified: trunk/sources/editor/qetelementeditor.cpp
===================================================================
--- trunk/sources/editor/qetelementeditor.cpp	2018-02-26 15:27:42 UTC (rev 5246)
+++ trunk/sources/editor/qetelementeditor.cpp	2018-02-26 15:35:10 UTC (rev 5247)
@@ -711,27 +711,6 @@
 		);
 	}
 
-		/// Check master, slave, simple and report element
-	if(m_elmt_scene -> elementType() == "master" ||
-	   m_elmt_scene -> elementType() == "slave"  ||
-	   m_elmt_scene -> elementType() == "simple")
-
-	{
-		bool wrng = true;
-		foreach (CustomElementPart *cep, m_elmt_scene->primitives())
-			if (cep->property("tagg").toString() == "label") wrng = false;
-
-			///Error #1: element is master, slave or simple but havent got input tagged 'label'
-		if (wrng) {
-			errors << qMakePair(
-							tr("Absence de champ texte 'label'", "warning title"),
-							tr("<br><b>Erreur</b  > :"
-							   "<br>Les éléments de type maîtres, esclaves, simple et renvoie de folio doivent posséder un champ texte comportant le tagg 'label'."
-							   "<br><b>Solution</b> :"
-							   "<br>Insérer un champ texte et lui attribuer le tagg 'label'", "warning description"));
-		}
-	}
-
 		/// Check folio report element
 	if (m_elmt_scene -> elementType().contains("report"))
 	{


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