diff --git a/sources/qetgraphicsitem/element.h b/sources/qetgraphicsitem/element.h index 16ccbabf5..6757dc039 100644 --- a/sources/qetgraphicsitem/element.h +++ b/sources/qetgraphicsitem/element.h @@ -108,7 +108,13 @@ class Element : public QetGraphicsItem { virtual void linkToElement(Element *) {} virtual void unlinkAllElements() {} virtual void unlinkElement(Element *) {} + +#if QT_VERSION >= 0x040800 virtual void initLink(QETProject *); +#else + void initLink(QETProject *); +#endif + QList linkedElements (); virtual int linkType() const {return link_type_;} // @return the linkable type void newUuid() {uuid_ = QUuid::createUuid();} //create new uuid for this element diff --git a/sources/qetproject.cpp b/sources/qetproject.cpp index 28f250610..9e2e68ed1 100644 --- a/sources/qetproject.cpp +++ b/sources/qetproject.cpp @@ -458,7 +458,11 @@ void QETProject::setDefaultXRefProperties(const QString type, const XRefProperti } void QETProject::setDefaultXRefProperties(QHash hash) { +#if QT_VERSION >= 0x040800 + m_default_xref_properties.swap(hash); +#else m_default_xref_properties = hash; +#endif emit XRefPropertiesChanged(); }