# HG changeset patch # User insilmaril # Date 1116401991 0 # Node ID f79a53ee8cf65eb21a252308b77eec313c2797c6 # Parent fac7bf71929540f3033b31395f2cae630627cd7f fixed some bugs in xlinks, more remove/insert functions diff -r fac7bf719295 -r f79a53ee8cf6 branchobj.cpp --- a/branchobj.cpp Wed May 18 07:39:51 2005 +0000 +++ b/branchobj.cpp Wed May 18 07:39:51 2005 +0000 @@ -422,6 +422,10 @@ } } +QColor BranchObj::getColor() +{ + return heading->getColor(); +} BranchObj* BranchObj::first() { diff -r fac7bf719295 -r f79a53ee8cf6 branchobj.h --- a/branchobj.h Wed May 18 07:39:51 2005 +0000 +++ b/branchobj.h Wed May 18 07:39:51 2005 +0000 @@ -43,6 +43,7 @@ virtual void setVisibility(bool); // set vis. for w virtual void setLinkColor(); // set the color of link virtual void setColor(QColor,bool); // set the color of heading + virtual QColor getColor(); // get color of heading BranchObj* first (); // set Iterator to first LMO diff -r fac7bf719295 -r f79a53ee8cf6 xml.cpp --- a/xml.cpp Wed May 18 07:39:51 2005 +0000 +++ b/xml.cpp Wed May 18 07:39:51 2005 +0000 @@ -106,14 +106,14 @@ col.setNamedColor(atts.value("linkColor")); me->setLinkColor(col); } - if (!atts.value( "xlinkColor").isEmpty() ) + if (!atts.value( "defXLinkColor").isEmpty() ) { - col.setNamedColor(atts.value("xlinkColor")); + col.setNamedColor(atts.value("defXLinkColor")); me->setDefXLinkColor(col); } - if (!atts.value( "xlinkWidth").isEmpty() ) + if (!atts.value( "defXLinkWidth").isEmpty() ) { - me->setDefXLinkWidth(atts.value("xlinkWidth").toInt ()); + me->setDefXLinkWidth(atts.value("defXLinkWidth").toInt ()); } } } else if ( eName == "select" && state == StateMap )