Skip to content

Commit

Permalink
Fix restoring of composition widget missed in last refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanW2 committed Feb 5, 2012
1 parent da2d7db commit c933dce
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/app/composer/qgscomposer.cpp
Expand Up @@ -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 )
Expand Down

0 comments on commit c933dce

Please sign in to comment.