Report element : minor improvement about text (text used to display the position of linked report is now tagged "label")

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3560 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2014-12-18 10:51:08 +00:00
parent 11bf04390e
commit 51d40f9fcd
6 changed files with 90 additions and 32 deletions

View File

@@ -637,7 +637,8 @@ bool QETElementEditor::checkElement() {
/// Check master, slave and simple element
if(ce_scene -> elementType() == "master" ||
ce_scene -> elementType() == "slave" ||
ce_scene -> elementType() == "simple" ) {
ce_scene -> elementType() == "simple" ||
ce_scene -> elementType().contains("report")) {
bool wrng = true;
foreach (CustomElementPart *cep, ce_scene->primitives()) {
@@ -647,7 +648,7 @@ bool QETElementEditor::checkElement() {
if (wrng) {
errors << qMakePair(
tr("Absence de champ texte 'label'", "warning title"),
tr("Les \351l\351ments ma\356tres, esclaves et simple doivent poss\351der "
tr("Les \351l\351ments ma\356tres, esclaves, simple et renvoie de folio doivent poss\351der "
"un champ texte comportant le tagg 'label'", "warning description"));
}
}