mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-09-13 20:23:04 +02:00
Fix : conductor don't display well user defined variable as conductor text
see : https://qelectrotech.org/forum/viewtopic.php?pid=18835#p18835
This commit is contained in:
parent
4ce67bb532
commit
73c0848fcd
@ -94,9 +94,13 @@ Diagram::Diagram(QETProject *project) :
|
|||||||
pen.setColor(Qt::black);
|
pen.setColor(Qt::black);
|
||||||
conductor_setter_ -> setPen(pen);
|
conductor_setter_ -> setPen(pen);
|
||||||
|
|
||||||
connect(&border_and_titleblock,
|
connect(&border_and_titleblock, &BorderTitleBlock::informationChanged, this, [this]() {
|
||||||
&BorderTitleBlock::informationChanged,
|
for (auto conductor : content().conductors()) {
|
||||||
this, &Diagram::diagramInformationChanged);
|
conductor->refreshText();
|
||||||
|
}
|
||||||
|
emit diagramInformationChanged();
|
||||||
|
});
|
||||||
|
|
||||||
connect(&border_and_titleblock,
|
connect(&border_and_titleblock,
|
||||||
&BorderTitleBlock::needTitleBlockTemplate,
|
&BorderTitleBlock::needTitleBlockTemplate,
|
||||||
this, &Diagram::setTitleBlockTemplate);
|
this, &Diagram::setTitleBlockTemplate);
|
||||||
@ -109,9 +113,6 @@ Diagram::Diagram(QETProject *project) :
|
|||||||
connect(&border_and_titleblock,
|
connect(&border_and_titleblock,
|
||||||
&BorderTitleBlock::borderChanged,
|
&BorderTitleBlock::borderChanged,
|
||||||
this, &Diagram::adjustSceneRect);
|
this, &Diagram::adjustSceneRect);
|
||||||
connect(&border_and_titleblock,
|
|
||||||
&BorderTitleBlock::titleBlockFolioChanged,
|
|
||||||
this, &Diagram::updateLabels);
|
|
||||||
connect(this, &Diagram::diagramActivated,
|
connect(this, &Diagram::diagramActivated,
|
||||||
this, &Diagram::loadElmtFolioSeq);
|
this, &Diagram::loadElmtFolioSeq);
|
||||||
connect(this, &Diagram::diagramActivated,
|
connect(this, &Diagram::diagramActivated,
|
||||||
@ -1762,19 +1763,6 @@ void Diagram::invertSelection()
|
|||||||
emit selectionChanged();
|
emit selectionChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
@brief Diagram::updateLabels
|
|
||||||
Update elements and conductors that reference folio field
|
|
||||||
in their labels.
|
|
||||||
*/
|
|
||||||
void Diagram::updateLabels()
|
|
||||||
{
|
|
||||||
for (Conductor *cnd : content().conductors())
|
|
||||||
{
|
|
||||||
cnd->refreshText();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@brief Diagram::insertFolioSeqHash
|
@brief Diagram::insertFolioSeqHash
|
||||||
This class inserts a stringlist containing all
|
This class inserts a stringlist containing all
|
||||||
|
@ -264,7 +264,6 @@ class Diagram : public QGraphicsScene
|
|||||||
void titleBlockTemplateRemoved(const QString &,
|
void titleBlockTemplateRemoved(const QString &,
|
||||||
const QString & = QString());
|
const QString & = QString());
|
||||||
void setTitleBlockTemplate(const QString &);
|
void setTitleBlockTemplate(const QString &);
|
||||||
void updateLabels();
|
|
||||||
void loadElmtFolioSeq();
|
void loadElmtFolioSeq();
|
||||||
void loadCndFolioSeq();
|
void loadCndFolioSeq();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user