|
|
@ -1099,9 +1099,9 @@ void Resource::saveProperty( TQObject *w, const TQString &name, const TQVariant
|
|
|
|
num = value.toInt();
|
|
|
|
num = value.toInt();
|
|
|
|
if ( w && w->inherits( "TQLayout" ) ) {
|
|
|
|
if ( w && w->inherits( "TQLayout" ) ) {
|
|
|
|
if ( name == "spacing" )
|
|
|
|
if ( name == "spacing" )
|
|
|
|
num = MetaDataBase::spacing( TQT_TQOBJECT(WidgetFactory::containerOfWidget( WidgetFactory::layoutParent( TQT_TQLAYOUT(TQT_BASE_OBJECT(w)) ) )) );
|
|
|
|
num = MetaDataBase::spacing( WidgetFactory::containerOfWidget( WidgetFactory::layoutParent( TQT_TQLAYOUT(TQT_BASE_OBJECT(w)) ) ) );
|
|
|
|
else if ( name == "margin" )
|
|
|
|
else if ( name == "margin" )
|
|
|
|
num = MetaDataBase::margin( TQT_TQOBJECT(WidgetFactory::containerOfWidget( WidgetFactory::layoutParent( TQT_TQLAYOUT(TQT_BASE_OBJECT(w)) ) )) );
|
|
|
|
num = MetaDataBase::margin( WidgetFactory::containerOfWidget( WidgetFactory::layoutParent( TQT_TQLAYOUT(TQT_BASE_OBJECT(w)) ) ) );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
ts << makeIndent( indent ) << "<number>" << TQString::number( num ) << "</number>" << endl;
|
|
|
|
ts << makeIndent( indent ) << "<number>" << TQString::number( num ) << "</number>" << endl;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
@ -1117,9 +1117,9 @@ void Resource::saveProperty( TQObject *w, const TQString &name, const TQVariant
|
|
|
|
unum = value.toUInt();
|
|
|
|
unum = value.toUInt();
|
|
|
|
if ( w && w->inherits( "TQLayout" ) ) {
|
|
|
|
if ( w && w->inherits( "TQLayout" ) ) {
|
|
|
|
if ( name == "spacing" )
|
|
|
|
if ( name == "spacing" )
|
|
|
|
num = MetaDataBase::spacing( TQT_TQOBJECT(WidgetFactory::layoutParent( TQT_TQLAYOUT(TQT_BASE_OBJECT(w)) )) );
|
|
|
|
num = MetaDataBase::spacing( WidgetFactory::layoutParent( TQT_TQLAYOUT(TQT_BASE_OBJECT(w)) ) );
|
|
|
|
else if ( name == "margin" )
|
|
|
|
else if ( name == "margin" )
|
|
|
|
num = MetaDataBase::margin( TQT_TQOBJECT(WidgetFactory::layoutParent( TQT_TQLAYOUT(TQT_BASE_OBJECT(w)) )) );
|
|
|
|
num = MetaDataBase::margin( WidgetFactory::layoutParent( TQT_TQLAYOUT(TQT_BASE_OBJECT(w)) ) );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
ts << makeIndent( indent ) << "<number>" << TQString::number( unum ) << "</number>" << endl;
|
|
|
|
ts << makeIndent( indent ) << "<number>" << TQString::number( unum ) << "</number>" << endl;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|