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.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/kdevdesigner/designer/metadatabase.cpp b/kdevdesigner/designer/metadatabase.cpp
index 7c77565d..32fdcd62 100644
--- a/kdevdesigner/designer/metadatabase.cpp
+++ b/kdevdesigner/designer/metadatabase.cpp
@@ -321,7 +321,7 @@ int MetaDataBase::spacing( TQObject *o )
if ( !o )
return -1;
setupDataBase();
- if ( ::tqqt_cast<TQMainWindow*>(o) )
+ if ( ::tqt_cast<TQMainWindow*>(o) )
o = TQT_TQOBJECT(( (TQMainWindow*)o )->centralWidget());
MetaDataBaseRecord *r = db->find( (void*)o );
if ( !r || !o->isWidgetType() ) {
@@ -352,9 +352,9 @@ void MetaDataBase::setMargin( TQObject *o, int margin )
bool isInnerLayout = TRUE;
TQWidget *widget = (TQWidget*)o;
- if ( widget && !::tqqt_cast<TQLayoutWidget*>(widget) &&
+ if ( widget && !::tqt_cast<TQLayoutWidget*>(widget) &&
( WidgetDatabase::isContainer( WidgetDatabase::idFromClassName( WidgetFactory::classNameOf( TQT_TQOBJECT(widget) ) ) ) ||
- widget && widget->parentWidget() && ::tqqt_cast<FormWindow*>(widget->parentWidget()) ) )
+ widget && widget->parentWidget() && ::tqt_cast<FormWindow*>(widget->parentWidget()) ) )
isInnerLayout = FALSE;
@@ -378,7 +378,7 @@ int MetaDataBase::margin( TQObject *o )
if ( !o )
return -1;
setupDataBase();
- if ( ::tqqt_cast<TQMainWindow*>(o) )
+ if ( ::tqt_cast<TQMainWindow*>(o) )
o = TQT_TQOBJECT(( (TQMainWindow*)o )->centralWidget());
MetaDataBaseRecord *r = db->find( (void*)o );
if ( !r || !o->isWidgetType() ) {
@@ -409,7 +409,7 @@ TQString MetaDataBase::resizeMode( TQObject *o )
if ( !o )
return TQString();
setupDataBase();
- if ( ::tqqt_cast<TQMainWindow*>(o) )
+ if ( ::tqt_cast<TQMainWindow*>(o) )
o = TQT_TQOBJECT(( (TQMainWindow*)o )->centralWidget());
MetaDataBaseRecord *r = db->find( (void*)o );
if ( !r || !o->isWidgetType() ) {
@@ -440,15 +440,15 @@ void MetaDataBase::addConnection( TQObject *o, TQObject *sender, const TQCString
r->connections.append( conn );
if ( addCode ) {
TQString rec = receiver->name();
- if ( ::tqqt_cast<FormWindow*>(o) && receiver ==( (FormWindow*)o )->mainContainer() )
+ if ( ::tqt_cast<FormWindow*>(o) && receiver ==( (FormWindow*)o )->mainContainer() )
rec = "this";
TQString sen = sender->name();
- if ( ::tqqt_cast<FormWindow*>(o) && sender ==( (FormWindow*)o )->mainContainer() )
+ if ( ::tqt_cast<FormWindow*>(o) && sender ==( (FormWindow*)o )->mainContainer() )
sen = "this";
FormFile *ff = 0;
- if ( ::tqqt_cast<FormFile*>(o) )
+ if ( ::tqt_cast<FormFile*>(o) )
ff = (FormFile*)o;
- else if ( ::tqqt_cast<FormWindow*>(o) )
+ else if ( ::tqt_cast<FormWindow*>(o) )
ff = ( (FormWindow*)o )->formFile();
ff->addConnection( sen, signal, rec, slot );
}
@@ -476,7 +476,7 @@ void MetaDataBase::removeConnection( TQObject *o, TQObject *sender, const TQCStr
break;
}
}
- if ( ::tqqt_cast<FormWindow*>(o) ) {
+ if ( ::tqt_cast<FormWindow*>(o) ) {
TQString rec = receiver->name();
if ( receiver ==( (FormWindow*)o )->mainContainer() )
rec = "this";
@@ -494,7 +494,7 @@ void MetaDataBase::setupConnections( TQObject *o, const TQValueList<LanguageInte
return;
}
- if ( !::tqqt_cast<FormFile*>(o) )
+ if ( !::tqt_cast<FormFile*>(o) )
return;
FormFile *formfile = (FormFile*)o;
@@ -679,14 +679,14 @@ bool MetaDataBase::hasSlot( TQObject *o, const TQCString &slot, bool onlyCustom
if ( slotList.find( slot ) != -1 )
return TRUE;
- if ( ::tqqt_cast<FormWindow*>(o) ) {
+ if ( ::tqt_cast<FormWindow*>(o) ) {
o = TQT_TQOBJECT(( (FormWindow*)o )->mainContainer());
slotList = o->metaObject()->slotNames( TRUE );
if ( slotList.find( slot ) != -1 )
return TRUE;
}
- //if ( ::tqqt_cast<CustomWidget*>(o) ) {
+ //if ( ::tqt_cast<CustomWidget*>(o) ) {
if ( o->inherits( "CustomWidget" ) ) {
MetaDataBase::CustomWidget *w = ( (::CustomWidget*)o )->customWidget();
for ( TQValueList<Function>::Iterator it = w->lstSlots.begin(); it != w->lstSlots.end(); ++it ) {
@@ -909,14 +909,14 @@ bool MetaDataBase::hasFunction( TQObject *o, const TQCString &function, bool onl
if ( functionList.find( function ) != -1 )
return TRUE;
- if ( ::tqqt_cast<FormWindow*>(o) ) {
+ if ( ::tqt_cast<FormWindow*>(o) ) {
o = TQT_TQOBJECT(( (FormWindow*)o )->mainContainer());
functionList = o->metaObject()->slotNames( TRUE );
if ( functionList.find( function ) != -1 )
return TRUE;
}
- //if ( ::tqqt_cast<CustomWidget*>(o) ) {
+ //if ( ::tqt_cast<CustomWidget*>(o) ) {
if ( o->inherits( "CustomWidget" ) ) {
MetaDataBase::CustomWidget *w = ( (::CustomWidget*)o )->customWidget();
for ( TQValueList<Function>::Iterator it = w->lstSlots.begin(); it != w->lstSlots.end(); ++it ) {