[TD]remove obsolete QGraphicsSVGItem (LGTM)

This commit is contained in:
wandererfan
2020-07-26 10:26:51 -04:00
committed by WandererFan
parent ed50ad1fc3
commit 9cf8607e5b
2 changed files with 2 additions and 9 deletions

View File

@@ -91,8 +91,6 @@ QGIFace::QGIFace(int index) :
m_image = new QGCustomImage();
m_image->setParentItem(this);
m_svg = new QGCustomSvg();
m_rect = new QGCustomRect();
m_rect->setParentItem(this);
@@ -230,14 +228,10 @@ void QGIFace::loadSvgHatch(std::string fileSpec)
QByteArray pattern("stroke:");
QByteArrayMatcher matcher(pattern);
int pos = 0;
if (matcher.indexIn(m_svgXML, pos) != -1)
if (matcher.indexIn(m_svgXML, pos) != -1) {
SVGCOLPREFIX = "stroke:"; // declaration part of a style="" statement
else
} else {
SVGCOLPREFIX = "stroke=\""; // declaration of its own
if (!m_svg->load(&m_svgXML)) {
Base::Console().Error("Error - Could not load hatch into SVG renderer for %s\n", fileSpec.c_str());
return;
}
}

View File

@@ -127,7 +127,6 @@ protected:
int projIndex; //index of face in Projection. -1 for SectionFace.
QGCustomRect *m_rect;
QGCustomSvg *m_svg;
QByteArray m_svgXML;
std::string m_svgCol;
std::string m_fileSpec; //for svg & bitmaps