summaryrefslogtreecommitdiffstats
path: root/kdevdesigner/designer/metadatabase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdevdesigner/designer/metadatabase.cpp')
-rw-r--r--kdevdesigner/designer/metadatabase.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/kdevdesigner/designer/metadatabase.cpp b/kdevdesigner/designer/metadatabase.cpp
index 68f721e8..72c2fa2f 100644
--- a/kdevdesigner/designer/metadatabase.cpp
+++ b/kdevdesigner/designer/metadatabase.cpp
@@ -304,11 +304,11 @@ void MetaDataBase::setSpacing( TQObject *o, int spacing )
r->spacing = spacing;
TQLayout * tqlayout = 0;
- WidgetFactory::tqlayoutType( (TQWidget*)o, tqlayout );
+ WidgetFactory::layoutType( (TQWidget*)o, tqlayout );
if ( tqlayout ) {
int spadef = 6;
if ( MainWindow::self->formWindow() )
- spadef = MainWindow::self->formWindow()->tqlayoutDefaultSpacing();
+ spadef = MainWindow::self->formWindow()->layoutDefaultSpacing();
if ( spacing == -1 )
tqlayout->setSpacing( spadef );
else
@@ -347,21 +347,21 @@ void MetaDataBase::setMargin( TQObject *o, int margin )
r->margin = margin;
TQLayout * tqlayout = 0;
- WidgetFactory::tqlayoutType( (TQWidget*)o, tqlayout );
+ WidgetFactory::layoutType( (TQWidget*)o, tqlayout );
bool isInnerLayout = TRUE;
TQWidget *widget = (TQWidget*)o;
if ( widget && !::tqqt_cast<TQLayoutWidget*>(widget) &&
( WidgetDatabase::isContainer( WidgetDatabase::idFromClassName( WidgetFactory::classNameOf( TQT_TQOBJECT(widget) ) ) ) ||
- widget && widget->tqparentWidget() && ::tqqt_cast<FormWindow*>(widget->tqparentWidget()) ) )
+ widget && widget->parentWidget() && ::tqqt_cast<FormWindow*>(widget->parentWidget()) ) )
isInnerLayout = FALSE;
if ( tqlayout ) {
int mardef = 11;
if ( MainWindow::self->formWindow() )
- mardef = MainWindow::self->formWindow()->tqlayoutDefaultMargin();
+ mardef = MainWindow::self->formWindow()->layoutDefaultMargin();
if ( margin == -1 ) {
if ( isInnerLayout )
tqlayout->setMargin( 1 );