Make lockAspectRatio (sizeAspectCheck) per-object (#63)
* Make lockAspectRatio (sizeAspectCheck) per-object * Added unit tests for XmlLabelCreator and XmlLabelParser.
This commit is contained in:
@@ -64,6 +64,7 @@ namespace glabels
|
||||
const Distance& y0,
|
||||
const Distance& w,
|
||||
const Distance& h,
|
||||
bool lockAspectRatio = false,
|
||||
const QMatrix& matrix = QMatrix(),
|
||||
bool shadowState = false,
|
||||
const Distance& shadowX = 0,
|
||||
@@ -136,6 +137,13 @@ namespace glabels
|
||||
void setH( const Distance& value );
|
||||
|
||||
|
||||
//
|
||||
// Lock Aspect Ratio Property
|
||||
//
|
||||
bool lockAspectRatio() const;
|
||||
void setLockAspectRatio( bool value );
|
||||
|
||||
|
||||
//
|
||||
// Transformation Matrix Property
|
||||
//
|
||||
@@ -424,6 +432,7 @@ namespace glabels
|
||||
Distance mY0;
|
||||
Distance mW;
|
||||
Distance mH;
|
||||
bool mLockAspectRatio;
|
||||
|
||||
bool mShadowState;
|
||||
Distance mShadowX;
|
||||
|
||||
Reference in New Issue
Block a user