summaryrefslogtreecommitdiffstats
path: root/kdevdesigner/designer/formwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdevdesigner/designer/formwindow.cpp')
-rw-r--r--kdevdesigner/designer/formwindow.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/kdevdesigner/designer/formwindow.cpp b/kdevdesigner/designer/formwindow.cpp
index bad73971..8e3aa416 100644
--- a/kdevdesigner/designer/formwindow.cpp
+++ b/kdevdesigner/designer/formwindow.cpp
@@ -435,7 +435,7 @@ void FormWindow::insertWidget()
++it;
if ( o->isWidgetType() &&
( (TQWidget*)o )->isVisibleTo( this ) &&
- insertedWidgets.find( o ) && TQT_BASE_OBJECT(o) != TQT_BASE_OBJECT(w) ) {
+ insertedWidgets.find( o ) && o != w ) {
TQRect r2( ( (TQWidget*)o )->pos(),
( (TQWidget*)o )->size() );
if ( r.contains( r2 ) )
@@ -737,7 +737,7 @@ void FormWindow::handleMouseDblClick( TQMouseEvent *, TQWidget *w )
}
default:
if ( !WidgetFactory::isPassiveInteractor( TQT_TQOBJECT(w) ) &&
- ( isMainContainer( w ) || TQT_BASE_OBJECT(w) == TQT_BASE_OBJECT(this) ) )
+ ( isMainContainer( w ) || w == this ) )
mainWindow()->editSource();
break;
}
@@ -2361,7 +2361,7 @@ bool FormWindow::unify( TQObject *w, TQString &s, bool changeIt )
int num = 1;
TQPtrDictIterator<TQWidget> it( insertedWidgets );
for ( ; it.current();) {
- if ( TQT_BASE_OBJECT(it.current()) != TQT_BASE_OBJECT(w) &&
+ if ( it.current() != w &&
qstrcmp( it.current()->name(), s.latin1() ) == 0 ) {
found = TRUE;
if ( !changeIt )
@@ -2568,7 +2568,7 @@ TQWidget *FormWindow::containerAt( const TQPoint &pos, TQWidget *notParentOf )
bool FormWindow::isMainContainer( TQObject *w ) const
{
- return w && w->isWidgetType() && ( TQT_BASE_OBJECT(w) == this || TQT_BASE_OBJECT(w) == mainContainer() );
+ return w && w->isWidgetType() && ( w == this || w == mainContainer() );
}
void FormWindow::setMainContainer( TQWidget *w )
@@ -2576,7 +2576,7 @@ void FormWindow::setMainContainer( TQWidget *w )
bool resetPropertyWidget = isMainContainer( propertyWidget );
if ( mContainer )
insertedWidgets.remove( mContainer );
- if ( TQT_BASE_OBJECT(propertyWidget) == TQT_BASE_OBJECT(mContainer) )
+ if ( propertyWidget == mContainer )
propertyWidget = 0;
delete mContainer;
mContainer = w;
@@ -2691,7 +2691,7 @@ bool FormWindow::isCentralWidget( TQObject *w ) const
{
if ( !::tqqt_cast<TQMainWindow*>(mainContainer()) )
return FALSE;
- return TQT_BASE_OBJECT(w) == TQT_BASE_OBJECT(( (TQMainWindow*)mainContainer() )->centralWidget());
+ return w == ((TQMainWindow*)mainContainer())->centralWidget();
}
int FormWindow::layoutDefaultSpacing() const