mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
Add new fild and titleblock "Function group"
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5622 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -319,18 +319,18 @@ void PotentialSelectorDialog::on_buttonBox_accepted()
|
||||
}
|
||||
|
||||
//Check if formula of the new potential have incompatible variable with folio report
|
||||
QRegularExpression rx ("%sequf_|%seqtf_|%seqhf_|%id|%F|%M|%LM");
|
||||
QRegularExpression rx ("%sequf_|%seqtf_|%seqhf_|%id|%F|%M|%FG|%LM");
|
||||
foreach(ConductorProperties cp, m_properties_list)
|
||||
{
|
||||
if (cp.m_formula.contains(rx))
|
||||
{
|
||||
QStringList forbidden_str;
|
||||
forbidden_str << "%sequf_" << "%seqtf_" << "%seqhf_" << "%id" << "%F" << "%M" << "%LM";
|
||||
forbidden_str << "%sequf_" << "%seqtf_" << "%seqhf_" << "%id" << "%F" << "%M" << "%FG" << "%LM";
|
||||
|
||||
QString text(tr("La formule du nouveau potentiel contient des variables incompatibles avec les reports de folio.\n"
|
||||
"Veuillez saisir une formule compatible pour ce potentiel.\n"
|
||||
"Les variables suivantes sont incompatibles :\n"
|
||||
"%sequf_ %seqtf_ %seqhf_ %id %F %M %LM"));
|
||||
"%sequf_ %seqtf_ %seqhf_ %id %F %M %FG %LM"));
|
||||
FormulaAssistantDialog fag(this);
|
||||
fag.setForbiddenVariables(forbidden_str);
|
||||
fag.setText(text);
|
||||
|
||||
Reference in New Issue
Block a user