+void HYDROGUI_InputPanel::insertWidget( QWidget* theWidget, int theIndex, int theStretch )
+{
+ if( mySplitter )
+ {
+ mySplitter->insertWidget( theIndex, theWidget );
+ mySplitter->setStretchFactor( theIndex, theStretch );
+ }
+ else
+ {
+ QBoxLayout* aMainLayout = dynamic_cast<QBoxLayout*>( myMainFrame->layout() );
+ aMainLayout->insertWidget( theIndex, theWidget, theStretch );
+ }
+}
+