|
|
@ -303,17 +303,8 @@ bool Resource::load( FormFile *ff, TQIODevice* dev )
|
|
|
|
if ( !customWidgets.isNull() )
|
|
|
|
if ( !customWidgets.isNull() )
|
|
|
|
loadCustomWidgets( customWidgets, this );
|
|
|
|
loadCustomWidgets( customWidgets, this );
|
|
|
|
|
|
|
|
|
|
|
|
#if defined (TQT_NON_COMMERCIAL)
|
|
|
|
|
|
|
|
bool previewMode = MainWindow::self->isPreviewing();
|
|
|
|
|
|
|
|
TQWidget *w = (TQWidget*)createObject( widget, !previewMode ? (TQWidget*)formwindow : MainWindow::self);
|
|
|
|
|
|
|
|
if ( !w )
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
if ( previewMode )
|
|
|
|
|
|
|
|
w->reparent( MainWindow::self, TQt::WType_TopLevel, w->pos(), true );
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
if ( !createObject( widget, formwindow) )
|
|
|
|
if ( !createObject( widget, formwindow) )
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ( !forwards.isNull() ) {
|
|
|
|
if ( !forwards.isNull() ) {
|
|
|
|
for ( TQDomElement n = forwards.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() )
|
|
|
|
for ( TQDomElement n = forwards.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() )
|
|
|
|