Refactor frame and markup code to use paths.

- CD frames are currently broken.
This commit is contained in:
Jim Evins
2015-08-12 01:20:52 -04:00
parent 0ad6caeeca
commit 721746007c
13 changed files with 110 additions and 164 deletions
+4 -5
View File
@@ -48,12 +48,12 @@ namespace libglabels
double w() const;
double h() const;
const QString sizeDescription( const Units *units ) const;
const QString sizeDescription( const Units* units ) const;
bool isSimilarTo( Frame *other ) const;
bool isSimilarTo( Frame* other ) const;
const QPainterPath& path( bool isRotated ) const;
QGraphicsItem* createMarginGraphicsItem( double size, const QPen& pen ) const;
const QPainterPath& path() const;
QPainterPath marginPath( double size ) const;
private:
@@ -64,7 +64,6 @@ namespace libglabels
double mYWaste;
QPainterPath mPath;
QPainterPath mRotatedPath;
};