Skip to content

Commit

Permalink
[composer] Copy frame properties (outline, background, render setting…
Browse files Browse the repository at this point in the history
…s) when creating new frames in a multi frame (sponsored by City of Uster, Switzerland)
  • Loading branch information
nyalldawson committed Apr 28, 2014
1 parent de301e9 commit dafae53
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/core/composer/qgscomposermultiframe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,16 @@ void QgsComposerMultiFrame::recalculateFrameSizes()
{
newFrame->setContentSection( QRectF( 0, currentY, newFrame->rect().width(), newFrame->rect().height() ) );
}

//copy some settings from the parent frame
newFrame->setBackgroundColor( currentItem->backgroundColor() );
newFrame->setBackgroundEnabled( currentItem->hasBackground() );
newFrame->setBlendMode( currentItem->blendMode() );
newFrame->setFrameEnabled( currentItem->hasFrame() );
newFrame->setFrameJoinStyle( currentItem->frameJoinStyle() );
newFrame->setFrameOutlineWidth( currentItem->frameOutlineWidth() );
newFrame->setOpacity( currentItem->opacity() );

currentY += frameHeight;
currentItem = newFrame;
addFrame( newFrame, false );
Expand Down

0 comments on commit dafae53

Please sign in to comment.