void wxFrame::AddChild( wxWindowBase *child ) { // Make sure all children are children of the central widget: QtReparent( child->GetHandle(), GetHandle()->centralWidget() ); wxFrameBase::AddChild( child ); }
bool wxWindowQt::Reparent( wxWindowBase *parent ) { if ( !wxWindowBase::Reparent( parent )) return false; QtReparent( GetHandle(), parent->GetHandle() ); return true; }
void wxWindowQt::AddChild( wxWindowBase *child ) { // Make sure all children are children of the inner scroll area widget (if any): if ( QtGetScrollBarsContainer() ) QtReparent( child->GetHandle(), QtGetScrollBarsContainer()->viewport() ); wxWindowBase::AddChild( child ); }