Construct objects in XmlLabelParser atomically.

This commit is contained in:
Jim Evins
2017-05-19 21:06:16 -04:00
parent 720c904d2f
commit 438dccd28f
19 changed files with 721 additions and 166 deletions
+34
View File
@@ -64,6 +64,40 @@ namespace glabels
}
///
/// Constructor
///
LabelModelObject::LabelModelObject( const Distance& x0,
const Distance& y0,
const Distance& w,
const Distance& h,
const QMatrix& matrix,
bool shadowState,
const Distance& shadowX,
const Distance& shadowY,
double shadowOpacity,
const ColorNode& shadowColorNode ) : QObject(nullptr)
{
mId = msNextId++;
mX0 = x0;
mY0 = y0;
mW = w;
mH = h;
mMatrix = matrix;
mShadowState = shadowState;
mShadowX = shadowX;
mShadowY = shadowY;
mShadowColorNode = shadowColorNode;
mShadowOpacity = shadowOpacity;
mSelectedFlag = false;
mOutline = nullptr;
}
///
/// Copy constructor
///