diff options
Diffstat (limited to 'lib/compatibility/kmdi/qextmdi/kmdichildfrm.cpp')
-rw-r--r-- | lib/compatibility/kmdi/qextmdi/kmdichildfrm.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/compatibility/kmdi/qextmdi/kmdichildfrm.cpp b/lib/compatibility/kmdi/qextmdi/kmdichildfrm.cpp index b57b93a8..9667518a 100644 --- a/lib/compatibility/kmdi/qextmdi/kmdichildfrm.cpp +++ b/lib/compatibility/kmdi/qextmdi/kmdichildfrm.cpp @@ -85,8 +85,8 @@ #include "kde2laptop_undockbutton.xpm" -KMdiWin32IconButton::KMdiWin32IconButton( TQWidget* tqparent, const char* name ) - : TQLabel( tqparent, name ) +KMdiWin32IconButton::KMdiWin32IconButton( TQWidget* parent, const char* name ) + : TQLabel( parent, name ) {} //============ mousePressEvent ============// @@ -98,8 +98,8 @@ void KMdiWin32IconButton::mousePressEvent( TQMouseEvent* ) //============ KMdiChildFrm ============// -KMdiChildFrm::KMdiChildFrm( KMdiChildArea *tqparent ) - : TQFrame( tqparent, "kmdi_childfrm" ) +KMdiChildFrm::KMdiChildFrm( KMdiChildArea *parent ) + : TQFrame( parent, "kmdi_childfrm" ) , m_pClient( 0L ) , m_pManager( 0L ) , m_pCaption( 0L ) @@ -129,7 +129,7 @@ KMdiChildFrm::KMdiChildFrm( KMdiChildArea *tqparent ) { m_pCaption = new KMdiChildFrmCaption( this ); - m_pManager = tqparent; + m_pManager = parent; m_pWinIcon = new KMdiWin32IconButton( m_pCaption, "kmdi_iconbutton_icon" ); m_pUnixIcon = new TQToolButton( m_pCaption, "kmdi_toolbutton_icon" ); @@ -774,8 +774,8 @@ void KMdiChildFrm::setClient( KMdiChildView *w, bool bAutomaticResize ) } delete list; // delete the list, not the objects - //Retqparent if needed - if ( TQT_BASE_OBJECT(w->tqparent()) != TQT_BASE_OBJECT(this) ) + //Reparent if needed + if ( TQT_BASE_OBJECT(w->parent()) != TQT_BASE_OBJECT(this) ) { //reparent to this widget , no flags , point , show it TQPoint pnt2( KMDI_CHILDFRM_BORDER, clientYPos ); @@ -1068,7 +1068,7 @@ void KMdiChildFrm::doResize( bool captionOnly ) static bool hasParent( TQObject* par, TQObject* o ) { while ( o && o != par ) - o = o->tqparent(); + o = o->parent(); return o == par; } @@ -1086,7 +1086,7 @@ bool KMdiChildFrm::eventFilter( TQObject *obj, TQEvent *e ) while ( ( pObj != 0L ) && !bIsChild ) { bIsChild = ( TQT_BASE_OBJECT(pObj) == TQT_BASE_OBJECT(this) ); - pObj = pObj->tqparent(); + pObj = pObj->parent(); } // unset the resize cursor if the cursor moved from the frame into a inner widget if ( bIsChild ) @@ -1112,7 +1112,7 @@ bool KMdiChildFrm::eventFilter( TQObject *obj, TQEvent *e ) m_pClient->activate(); } - if ( ( TQT_BASE_OBJECT(obj->tqparent()) != TQT_BASE_OBJECT(m_pCaption) ) && ( TQT_BASE_OBJECT(obj) != TQT_BASE_OBJECT(m_pCaption) ) ) + if ( ( TQT_BASE_OBJECT(obj->parent()) != TQT_BASE_OBJECT(m_pCaption) ) && ( TQT_BASE_OBJECT(obj) != TQT_BASE_OBJECT(m_pCaption) ) ) { TQWidget* w = ( TQWidget* ) obj; if ( ( w->focusPolicy() == TQ_ClickFocus ) || ( w->focusPolicy() == TQ_StrongFocus ) ) |