From 6c79d50fa9fbdff7f69ca57a8ab5fcc942375593 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 10 Aug 2011 22:19:39 +0000 Subject: rename the following methods: tqparent parent tqmask mask git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- lib/compatibility/kmdi/qextmdi/kmdimainfrm.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'lib/compatibility/kmdi/qextmdi/kmdimainfrm.cpp') diff --git a/lib/compatibility/kmdi/qextmdi/kmdimainfrm.cpp b/lib/compatibility/kmdi/qextmdi/kmdimainfrm.cpp index 92624120..89bdb44e 100644 --- a/lib/compatibility/kmdi/qextmdi/kmdimainfrm.cpp +++ b/lib/compatibility/kmdi/qextmdi/kmdimainfrm.cpp @@ -345,7 +345,7 @@ void KMdiMainFrm::applyOptions() TQWidget* childFrame = 0L; if ( ( *it )->mdiParent() ) { - kdDebug(760) << k_funcinfo << "using child view's mdi tqparent for resize hack" << endl; + kdDebug(760) << k_funcinfo << "using child view's mdi parent for resize hack" << endl; childFrame = ( *it )->mdiParent(); } else @@ -421,7 +421,7 @@ KMdiChildView* KMdiMainFrm::createWrapper( TQWidget *view, const TQString& name, { Q_ASSERT( view ); // if this assert fails, then some part didn't return a widget. Fix the part ;) - KMdiChildView* pMDICover = new KMdiChildView( name /*caption*/, 0L /*tqparent*/, + KMdiChildView* pMDICover = new KMdiChildView( name /*caption*/, 0L /*parent*/, name.latin1() ); TQBoxLayout* pLayout = new TQHBoxLayout( pMDICover, 0, -1, "tqlayout" ); view->reparent( pMDICover, TQPoint( 0, 0 ) ); @@ -670,7 +670,7 @@ void KMdiMainFrm::detachWindow( KMdiChildView *pWnd, bool bShow ) pWnd->removeEventFilter( this ); pWnd->youAreDetached(); // this is only if it was attached and you want to detach it - if ( pWnd->tqparent() ) + if ( pWnd->parent() ) { KMdiChildFrm * lpC = pWnd->mdiParent(); if ( lpC ) @@ -1401,7 +1401,7 @@ void KMdiMainFrm::switchToToplevelMode() // TQApplication::sendPostedEvents(); //why do we need to empty the event queue? if ( !parentWidget() ) { - //if we don't have a tqparent widget ( which i expect we wouldn't ) + //if we don't have a parent widget ( which i expect we wouldn't ) //make sure we take into account the size of the docks provided by //TQMainWindow int topDockHeight = topDock() ? topDock()->height() : 0; @@ -1875,9 +1875,9 @@ void KMdiMainFrm::switchToIDEAlMode() } -void KMdiMainFrm::dockToolViewsIntoContainers( TQPtrList& widgetsToRetqparent, KDockWidget *container ) +void KMdiMainFrm::dockToolViewsIntoContainers( TQPtrList& widgetsToReparent, KDockWidget *container ) { - TQPtrListIterator it( widgetsToRetqparent ); + TQPtrListIterator it( widgetsToReparent ); for ( ; ( *it ); ++it ) { ( *it )->manualDock( container, KDockWidget::DockCenter, 20 ); @@ -1890,7 +1890,7 @@ void KMdiMainFrm::findToolViewsDockedToMain( TQPtrList* list, KDock KDockWidget* mainDock = getMainDockWidget(); if ( mainDock->parentDockTabGroup() ) { - mainDock = dynamic_cast( mainDock->parentDockTabGroup()->tqparent() ); + mainDock = dynamic_cast( mainDock->parentDockTabGroup()->parent() ); // FIXME: will likely crash below due to unchecked cast } @@ -1903,7 +1903,7 @@ void KMdiMainFrm::findToolViewsDockedToMain( TQPtrList* list, KDock KDockWidget* widget = mainDock->findNearestDockWidget( dprtmw ); if ( widget && widget->parentDockTabGroup() ) { - widget = static_cast( TQT_TQWIDGET(widget->parentDockTabGroup() ->tqparent()) ); + widget = static_cast( TQT_TQWIDGET(widget->parentDockTabGroup() ->parent()) ); if ( widget ) { @@ -1935,7 +1935,7 @@ void KMdiMainFrm::setupToolViewsForIDEALMode() KDockWidget *mainDock = getMainDockWidget(); KDockWidget *w = mainDock; if ( mainDock->parentDockTabGroup() ) - w = static_cast( TQT_TQWIDGET(mainDock->parentDockTabGroup()->tqparent()) ); + w = static_cast( TQT_TQWIDGET(mainDock->parentDockTabGroup()->parent()) ); TQPtrList leftReparentWidgets; TQPtrList rightReparentWidgets; @@ -1943,7 +1943,7 @@ void KMdiMainFrm::setupToolViewsForIDEALMode() TQPtrList topReparentWidgets; if ( mainDock->parentDockTabGroup() ) - mainDock = static_cast( TQT_TQWIDGET(mainDock->parentDockTabGroup() ->tqparent()) ); + mainDock = static_cast( TQT_TQWIDGET(mainDock->parentDockTabGroup() ->parent()) ); findToolViewsDockedToMain( &leftReparentWidgets, KDockWidget::DockLeft ); findToolViewsDockedToMain( &rightReparentWidgets, KDockWidget::DockRight ); @@ -2141,7 +2141,7 @@ void KMdiMainFrm::idealToolViewsToStandardTabs( TQStringList widgetNames, KDockW KDockWidget * mainDock = getMainDockWidget(); if ( mainDock->parentDockTabGroup() ) { - mainDock = static_cast( TQT_TQWIDGET(mainDock->parentDockTabGroup() ->tqparent()) ); + mainDock = static_cast( TQT_TQWIDGET(mainDock->parentDockTabGroup() ->parent()) ); } if ( widgetNames.count() > 0 ) -- cgit v1.2.1