Added MiniPreviewPixmap to Template.

This commit is contained in:
Jim Evins
2013-11-04 23:58:03 -05:00
parent 2843d8ccda
commit fe4595bde0
17 changed files with 263 additions and 34 deletions
+7 -1
View File
@@ -35,10 +35,11 @@ namespace libglabels
QString id = "0" )
: mR(r), mWaste(waste), Frame(id)
{
mPath.addEllipse( 0, 0, 2*mR, 2*mR );
}
FrameRound( const FrameRound &other )
: mR(other.mR), mWaste(other.mWaste), Frame(other)
: mR(other.mR), mWaste(other.mWaste), mPath(other.mPath), Frame(other)
{
}
@@ -53,12 +54,17 @@ namespace libglabels
const QString &sizeDescription( Units *units );
bool isSimilarTo( Frame *other ) const;
const QPainterPath &path() const { return mPath; }
private:
double mR;
double mWaste;
QString mSizeDescription;
QPainterPath mPath;
};
}