fix bug : if a xml definition of an element haven't got a uuid, the generated pixmap is false.

this commit it.


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5493 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2018-08-23 20:58:41 +00:00
parent e6d73977c1
commit e4f3f284ea
2 changed files with 42 additions and 15 deletions

View File

@@ -90,7 +90,7 @@ class ElementPictureFactory
ElementPictureFactory operator= (const ElementPictureFactory &);
~ElementPictureFactory() {}
bool build(const ElementsLocation &location);
bool build(const ElementsLocation &location, QPicture *picture=nullptr, QPicture *low_picture=nullptr);
void parseElement(const QDomElement &dom, QPainter &painter, primitives &prim) const;
void parseLine (const QDomElement &dom, QPainter &painter, primitives &prim) const;
void parseRect (const QDomElement &dom, QPainter &painter, primitives &prim) const;