Added label clip path to page renderer.

This commit is contained in:
Jim Evins
2016-05-21 13:34:16 -04:00
parent 4cc6ddab6c
commit 91cefb7287
10 changed files with 87 additions and 15 deletions
+7
View File
@@ -36,6 +36,7 @@ namespace glabels
: mW(w), mH(h), mWaste(waste), Frame(id)
{
mPath.addEllipse( 0, 0, mW.pt(), mH.pt() );
mClipPath.addEllipse( -mWaste.pt(), -mWaste.pt(), (mW+2*mWaste).pt(), (mH+2*mWaste).pt() );
}
FrameEllipse::FrameEllipse( const FrameEllipse& other )
@@ -104,6 +105,12 @@ namespace glabels
}
const QPainterPath& FrameEllipse::clipPath() const
{
return mClipPath;
}
QPainterPath FrameEllipse::marginPath( const Distance& size ) const
{
Distance w = mW - 2*size;