UserVariables branch merge
This commit is contained in:
@@ -312,7 +312,8 @@ namespace glabels
|
||||
///
|
||||
void ModelBarcodeObject::drawShadow( QPainter* painter,
|
||||
bool inEditor,
|
||||
merge::Record* record ) const
|
||||
merge::Record* record,
|
||||
Variables* variables ) const
|
||||
{
|
||||
// Barcodes don't support shadows.
|
||||
}
|
||||
@@ -323,9 +324,10 @@ namespace glabels
|
||||
///
|
||||
void ModelBarcodeObject::drawObject( QPainter* painter,
|
||||
bool inEditor,
|
||||
merge::Record* record ) const
|
||||
merge::Record* record,
|
||||
Variables* variables ) const
|
||||
{
|
||||
QColor bcColor = mBcColorNode.color( record );
|
||||
QColor bcColor = mBcColorNode.color( record, variables );
|
||||
|
||||
if ( inEditor )
|
||||
{
|
||||
@@ -333,7 +335,7 @@ namespace glabels
|
||||
}
|
||||
else
|
||||
{
|
||||
drawBc( painter, bcColor, record );
|
||||
drawBc( painter, bcColor, record, variables );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -451,7 +453,8 @@ namespace glabels
|
||||
void
|
||||
ModelBarcodeObject::drawBc( QPainter* painter,
|
||||
const QColor& color,
|
||||
merge::Record* record ) const
|
||||
merge::Record* record,
|
||||
Variables* variables ) const
|
||||
{
|
||||
painter->setPen( QPen( color ) );
|
||||
|
||||
@@ -459,7 +462,7 @@ namespace glabels
|
||||
bc->setChecksum(mBcChecksumFlag);
|
||||
bc->setShowText(mBcTextFlag);
|
||||
|
||||
bc->build( mBcData.expand( record ).toStdString(), mW.pt(), mH.pt() );
|
||||
bc->build( mBcData.expand( record, variables ).toStdString(), mW.pt(), mH.pt() );
|
||||
|
||||
glbarcode::QtRenderer renderer(painter);
|
||||
bc->render( renderer );
|
||||
|
||||
Reference in New Issue
Block a user