mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 23:20:52 +01:00
Element : variable assignement of label is now managed by an external class instead of the element itself
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4772 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
#include "terminal.h"
|
||||
#include "conductor.h"
|
||||
#include "qet.h"
|
||||
#include "assignvariables.h"
|
||||
|
||||
/**
|
||||
* @brief ElementSelectorWidget::ElementSelectorWidget
|
||||
@@ -134,13 +135,13 @@ void ElementSelectorWidget::buildInterface() {
|
||||
DiagramContext dc = elmt -> elementInformations();
|
||||
|
||||
if (!dc["label"].toString().isEmpty())
|
||||
button_text = elmt->assignVariables(dc["label"].toString(), elmt) + " ";
|
||||
button_text = autonum::AssignVariables::formulaToLabel(dc["label"].toString(), elmt->rSequenceStruct(), elmt->diagram(), elmt) + " ";
|
||||
|
||||
if (!dc["comment"].toString().isEmpty())
|
||||
button_text += elmt->assignVariables(dc["comment"].toString(), elmt);
|
||||
button_text = autonum::AssignVariables::formulaToLabel(dc["comment"].toString(), elmt->rSequenceStruct(), elmt->diagram(), elmt);
|
||||
|
||||
if (!dc["location"].toString().isEmpty())
|
||||
button_text += elmt->assignVariables(dc["location"].toString(), elmt);
|
||||
button_text = autonum::AssignVariables::formulaToLabel(dc["location"].toString(), elmt->rSequenceStruct(), elmt->diagram(), elmt);
|
||||
|
||||
if (!button_text.isEmpty())
|
||||
button_text += "\n";
|
||||
|
||||
Reference in New Issue
Block a user