delete aChild;
}
}
+
+ // Issue #460: this patch is necessary since the row stretch information
+ // is stored independently on the items: when the items are removed
+ // from the layout the stretch information is kept, so in the next
+ // filling of the layout some "additional" (old) rows may be stretched
+ // without necessity.
+ // In this patch we clear the stretch information specifying the default value: 0.
+ QGridLayout* aLayout = dynamic_cast<QGridLayout*>( pageLayout() );
+ if( aLayout )
+ {
+ int r = aLayout->rowCount();
+ for( int i=0; i<r; i++ )
+ aLayout->setRowStretch( i, 0 );
+ }
myWidgetList.clear();
}