53 double totalHeight = size.height();
55 if ( totalHeight < 1 )
61 double currentHeight = 0;
79 currentHeight = currentItem->rect().height();
82 currentItem->
setContentSection( QRectF( 0, 0, currentItem->rect().width(), currentHeight ) );
86 currentItem->
setContentSection( QRectF( 0, currentY, currentItem->rect().width(), currentHeight ) );
88 currentItem->update();
89 currentY += currentHeight;
114 double frameHeight = 0;
117 frameHeight = currentItem->rect().height();
131 currentItem->rect().width(), frameHeight );
134 newFrame->
setContentSection( QRectF( 0, 0, newFrame->rect().width(), newFrame->rect().height() ) );
138 newFrame->
setContentSection( QRectF( 0, currentY, newFrame->rect().width(), newFrame->rect().height() ) );
140 currentY += frameHeight;
141 currentItem = newFrame;
179 for (
int i =
mFrameItems.size() - 1; i >= 0; --i )
198 lastFrame->rect().width(), lastFrame->rect().height() );
200 lastFrame = newFrame;
219 QList<QgsComposerFrame*>::iterator frameIt =
mFrameItems.begin();
222 ( *frameIt )->update();
231 QList<QgsComposerFrame*>::iterator frameIt =
mFrameItems.begin();
256 QList<QgsComposerFrame*>::const_iterator frameIt =
mFrameItems.constBegin();
257 for ( ; frameIt !=
mFrameItems.constEnd(); ++frameIt )
259 ( *frameIt )->writeXML( elem, doc );
270 QDomNodeList frameList = itemElem.elementsByTagName(
"ComposerFrame" );
271 for (
int i = 0; i < frameList.size(); ++i )
273 QDomElement frameElem = frameList.at( i ).toElement();
275 newFrame->
readXML( frameElem, doc );