summaryrefslogtreecommitdiffstats
path: root/kommander
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2023-12-06 09:52:05 +0100
committerSlávek Banko <slavek.banko@axis.cz>2023-12-06 09:52:05 +0100
commit447a1693bfd52e1c2c358d0df1e21cf9a56e888c (patch)
tree278279814d7700a538a2bf6d3ca90e9c0ee4aa57 /kommander
parent10ff449a14f1c053295e0b7cfd678bebc11ca880 (diff)
downloadtdewebdev-447a1693bfd52e1c2c358d0df1e21cf9a56e888c.tar.gz
tdewebdev-447a1693bfd52e1c2c358d0df1e21cf9a56e888c.zip
Fix FTBFS from prior commit.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'kommander')
-rw-r--r--kommander/editor/resource.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/kommander/editor/resource.cpp b/kommander/editor/resource.cpp
index b369118e..7122abba 100644
--- a/kommander/editor/resource.cpp
+++ b/kommander/editor/resource.cpp
@@ -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;