Skip to content
Permalink
Browse files

Fix restoring of composition widget missed in last refactor

  • Loading branch information
NathanW2 committed Feb 5, 2012
1 parent da2d7db commit c933dce209b89fb1b442438f4af5b36063424a00
Showing with 3 additions and 7 deletions.
  1. +3 −7 src/app/composer/qgscomposer.cpp
@@ -1276,13 +1276,9 @@ void QgsComposer::readXML( const QDomElement& composerElem, const QDomDocument&
l->addWidget( mView, 0, 0 );

//create compositionwidget
// QgsCompositionWidget* compositionWidget = new QgsCompositionWidget( mCompositionOptionsFrame, mComposition );
// QObject::connect( mComposition, SIGNAL( paperSizeChanged() ), compositionWidget, SLOT( displayCompositionWidthHeight() ) );
// compositionWidget->show();

// mCompositionOptionsLayout = new QGridLayout( mCompositionOptionsFrame );
// mCompositionOptionsLayout->setMargin( 0 );
// mCompositionOptionsLayout->addWidget( compositionWidget );
QgsCompositionWidget* compositionWidget = new QgsCompositionWidget( mGeneralDock, mComposition );
QObject::connect( mComposition, SIGNAL( paperSizeChanged() ), compositionWidget, SLOT( displayCompositionWidthHeight() ) );
mGeneralDock->setWidget( compositionWidget );

//read and restore all the items
if ( mComposition )

0 comments on commit c933dce

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