Correctly draw rotated labels.

This commit is contained in:
Jim Evins
2015-08-11 12:43:14 -04:00
parent 9bebf921b2
commit de8ec9b66a
7 changed files with 55 additions and 22 deletions
+2 -1
View File
@@ -59,7 +59,7 @@ namespace libglabels
const QString sizeDescription( const Units *units ) const;
bool isSimilarTo( Frame *other ) const;
const QPainterPath &path() const { return mPath; }
const QPainterPath &path( bool isRotated ) const { return isRotated ? mRotatedPath : mPath; }
QGraphicsItem* createMarginGraphicsItem( double size, const QPen& pen ) const;
@@ -73,6 +73,7 @@ namespace libglabels
double mWaste;
QPainterPath mPath;
QPainterPath mRotatedPath;
};