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.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kdevdesigner/designer/metadatabase.cpp b/kdevdesigner/designer/metadatabase.cpp
index 32fdcd62..2639639b 100644
--- a/kdevdesigner/designer/metadatabase.cpp
+++ b/kdevdesigner/designer/metadatabase.cpp
@@ -322,7 +322,7 @@ int MetaDataBase::spacing( TQObject *o )
return -1;
setupDataBase();
if ( ::tqt_cast<TQMainWindow*>(o) )
- o = TQT_TQOBJECT(( (TQMainWindow*)o )->centralWidget());
+ o = ( (TQMainWindow*)o )->centralWidget();
MetaDataBaseRecord *r = db->find( (void*)o );
if ( !r || !o->isWidgetType() ) {
tqWarning( "No entry for %p (%s, %s) found in MetaDataBase",
@@ -353,7 +353,7 @@ void MetaDataBase::setMargin( TQObject *o, int margin )
TQWidget *widget = (TQWidget*)o;
if ( widget && !::tqt_cast<TQLayoutWidget*>(widget) &&
- ( WidgetDatabase::isContainer( WidgetDatabase::idFromClassName( WidgetFactory::classNameOf( TQT_TQOBJECT(widget) ) ) ) ||
+ ( WidgetDatabase::isContainer( WidgetDatabase::idFromClassName( WidgetFactory::classNameOf( widget ) ) ) ||
widget && widget->parentWidget() && ::tqt_cast<FormWindow*>(widget->parentWidget()) ) )
isInnerLayout = FALSE;
@@ -379,7 +379,7 @@ int MetaDataBase::margin( TQObject *o )
return -1;
setupDataBase();
if ( ::tqt_cast<TQMainWindow*>(o) )
- o = TQT_TQOBJECT(( (TQMainWindow*)o )->centralWidget());
+ o = ( (TQMainWindow*)o )->centralWidget();
MetaDataBaseRecord *r = db->find( (void*)o );
if ( !r || !o->isWidgetType() ) {
tqWarning( "No entry for %p (%s, %s) found in MetaDataBase",
@@ -410,7 +410,7 @@ TQString MetaDataBase::resizeMode( TQObject *o )
return TQString();
setupDataBase();
if ( ::tqt_cast<TQMainWindow*>(o) )
- o = TQT_TQOBJECT(( (TQMainWindow*)o )->centralWidget());
+ o = ( (TQMainWindow*)o )->centralWidget();
MetaDataBaseRecord *r = db->find( (void*)o );
if ( !r || !o->isWidgetType() ) {
tqWarning( "No entry for %p (%s, %s) found in MetaDataBase",
@@ -514,8 +514,8 @@ void MetaDataBase::setupConnections( TQObject *o, const TQValueList<LanguageInte
sender = formfile->project()->objectForFakeFormFile( formfile );
if ( !sender && senderName == "this" )
sender = formfile->formWindow() ?
- TQT_TQOBJECT(formfile->formWindow()->mainContainer()) :
- TQT_TQOBJECT(formfile->project()->objectForFakeFormFile( formfile ));
+ formfile->formWindow()->mainContainer() :
+ formfile->project()->objectForFakeFormFile( formfile );
if ( !sender )
continue;
MetaDataBase::addConnection( formfile->formWindow() ?
@@ -524,8 +524,8 @@ void MetaDataBase::setupConnections( TQObject *o, const TQValueList<LanguageInte
sender,
(*cit).signal.latin1(),
formfile->formWindow() ?
- TQT_TQOBJECT(formfile->formWindow()->mainContainer()) :
- TQT_TQOBJECT(formfile->project()->objectForFakeFormFile( formfile )),
+ formfile->formWindow()->mainContainer() :
+ formfile->project()->objectForFakeFormFile( formfile ),
(*cit).slot.latin1(),
FALSE );
}
@@ -680,7 +680,7 @@ bool MetaDataBase::hasSlot( TQObject *o, const TQCString &slot, bool onlyCustom
return TRUE;
if ( ::tqt_cast<FormWindow*>(o) ) {
- o = TQT_TQOBJECT(( (FormWindow*)o )->mainContainer());
+ o = ( (FormWindow*)o )->mainContainer();
slotList = o->metaObject()->slotNames( TRUE );
if ( slotList.find( slot ) != -1 )
return TRUE;
@@ -910,7 +910,7 @@ bool MetaDataBase::hasFunction( TQObject *o, const TQCString &function, bool onl
return TRUE;
if ( ::tqt_cast<FormWindow*>(o) ) {
- o = TQT_TQOBJECT(( (FormWindow*)o )->mainContainer());
+ o = ( (FormWindow*)o )->mainContainer();
functionList = o->metaObject()->slotNames( TRUE );
if ( functionList.find( function ) != -1 )
return TRUE;