Fix FTBFS from prior commit.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 447a1693bf)
r14.1.x
Slávek Banko 11 months ago
parent 37f6b15cfb
commit abd5e8f9a2
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

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

Loading…
Cancel
Save