[TD]remove obsolete QGraphicsSVGItem (LGTM)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user