Skip to content
Permalink
Browse files

[composer] Copy frame properties (outline, background, render setting…

…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 dafae532021cc1430ea0a87b9f3ea831c95f4e0f
Showing with 10 additions and 0 deletions.
  1. +10 −0 src/core/composer/qgscomposermultiframe.cpp
@@ -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 );

0 comments on commit dafae53

Please sign in to comment.
You can’t perform that action at this time.