mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-04-14 12:20:00 +02:00
Fix regression occurred in rev 3439
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3458 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -108,7 +108,13 @@ 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 *) {}
|
||||||
|
|
||||||
|
#if QT_VERSION >= 0x040800
|
||||||
virtual void initLink(QETProject *);
|
virtual void initLink(QETProject *);
|
||||||
|
#else
|
||||||
|
void initLink(QETProject *);
|
||||||
|
#endif
|
||||||
|
|
||||||
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
|
||||||
|
|||||||
@@ -458,7 +458,11 @@ void QETProject::setDefaultXRefProperties(const QString type, const XRefProperti
|
|||||||
}
|
}
|
||||||
|
|
||||||
void QETProject::setDefaultXRefProperties(QHash<QString, XRefProperties> hash) {
|
void QETProject::setDefaultXRefProperties(QHash<QString, XRefProperties> hash) {
|
||||||
|
#if QT_VERSION >= 0x040800
|
||||||
|
m_default_xref_properties.swap(hash);
|
||||||
|
#else
|
||||||
m_default_xref_properties = hash;
|
m_default_xref_properties = hash;
|
||||||
|
#endif
|
||||||
emit XRefPropertiesChanged();
|
emit XRefPropertiesChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user