[qet] [3386] Create simple element must have text field tagged "label".

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


Revision: 3386
Author:   blacksun
Date:     2014-10-20 23:10:32 +0200 (Mon, 20 Oct 2014)
Log Message:
-----------
Create simple element must have text field tagged "label".

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

Modified: trunk/sources/editor/qetelementeditor.cpp
===================================================================
--- trunk/sources/editor/qetelementeditor.cpp	2014-10-20 08:00:53 UTC (rev 3385)
+++ trunk/sources/editor/qetelementeditor.cpp	2014-10-20 21:10:32 UTC (rev 3386)
@@ -671,17 +671,20 @@
 		);
 	}
 
-	/// Check master and slave element
-	if(ce_scene -> elementType() == "master" || ce_scene -> elementType() == "slave") {
+	/// Check master, slave and simple element
+	if(ce_scene -> elementType() == "master" ||
+	   ce_scene -> elementType() == "slave"  ||
+	   ce_scene -> elementType() == "simple"    ) {
+
 		bool wrng = true;
 		foreach (CustomElementPart *cep, ce_scene->primitives()) {
 			if (cep->property("tagg").toString() == "label") wrng = false;
 		}
-		///Error #1: element is slave or master but havent got input tagged 'label'
+		///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("Les \351l\351ments ma\356tres ou esclaves doivent poss\351der "
+							tr("Les \351l\351ments ma\356tres, esclaves  et simple doivent poss\351der "
 							   "un champ texte comportant le tagg 'label'", "warning description"));
 		}
 	}


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