mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 14:50:53 +01:00
bug fix: At project opening, simple element don't displayed the good text, but '_'
if the text wasn't write in the element propertie dialog (only affect the text field tagged 'label') git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3460 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -108,8 +108,7 @@ class Element : public QetGraphicsItem {
|
|||||||
virtual void linkToElement(Element *) {}
|
virtual void linkToElement(Element *) {}
|
||||||
virtual void unlinkAllElements() {}
|
virtual void unlinkAllElements() {}
|
||||||
virtual void unlinkElement(Element *) {}
|
virtual void unlinkElement(Element *) {}
|
||||||
void initLink(QETProject *);
|
virtual void initLink(QETProject *);
|
||||||
|
|
||||||
QList<Element *> linkedElements ();
|
QList<Element *> linkedElements ();
|
||||||
virtual int linkType() const {return link_type_;} // @return the linkable type
|
virtual int linkType() const {return link_type_;} // @return the linkable type
|
||||||
void newUuid() {uuid_ = QUuid::createUuid();} //create new uuid for this element
|
void newUuid() {uuid_ = QUuid::createUuid();} //create new uuid for this element
|
||||||
|
|||||||
@@ -55,9 +55,7 @@ void SimpleElement::updateLabel() {
|
|||||||
bool show = elementInformations().keyMustShow("label");
|
bool show = elementInformations().keyMustShow("label");
|
||||||
|
|
||||||
// setup the label
|
// setup the label
|
||||||
(label.isEmpty() || !show)?
|
if (!label.isEmpty() && show) setTaggedText("label", label, true);
|
||||||
setTaggedText("label", "_", false):
|
|
||||||
setTaggedText("label", label, true);
|
|
||||||
|
|
||||||
//Comment of element
|
//Comment of element
|
||||||
QString comment = elementInformations()["comment"].toString();
|
QString comment = elementInformations()["comment"].toString();
|
||||||
|
|||||||
Reference in New Issue
Block a user