Exclude hatches from SVG export.

QtSvg does not support clipping which is required for hatches.
This commit is contained in:
WandererFan
2016-07-16 13:16:59 -04:00
parent 6e6904898c
commit 9b81ea1cc9
7 changed files with 63 additions and 40 deletions

View File

@@ -175,6 +175,17 @@ void QGIFace::setHatchColor(std::string c)
m_svgCol = c;
}
//QtSvg does not handle clipping, so we must be able to turn the hatching on/off
void QGIFace::toggleSvg(bool b)
{
if (b) {
m_rect->show();
} else {
m_rect->hide();
}
update();
}
QRectF QGIFace::boundingRect() const
{
return shape().controlPointRect();