diff options
Diffstat (limited to 'lib/compatibility/kmdi/qextmdi/kmdidockcontainer.cpp')
-rw-r--r-- | lib/compatibility/kmdi/qextmdi/kmdidockcontainer.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/lib/compatibility/kmdi/qextmdi/kmdidockcontainer.cpp b/lib/compatibility/kmdi/qextmdi/kmdidockcontainer.cpp index ff24a983..28b42bc8 100644 --- a/lib/compatibility/kmdi/qextmdi/kmdidockcontainer.cpp +++ b/lib/compatibility/kmdi/qextmdi/kmdidockcontainer.cpp @@ -156,26 +156,26 @@ void KMdiDockContainer::init() if ( !m_horizontal ) { kdDebug( 760 ) << k_funcinfo << "Horizontal tabbar. Setting forced fixed width." << endl; - tqparentDockWidget()->setForcedFixedWidth( m_tb->width() ); + parentDockWidget()->setForcedFixedWidth( m_tb->width() ); activateOverlapMode( m_tb->width() ); } else { kdDebug( 760 ) << k_funcinfo << "Vertical tabbar. Setting forced fixed height." << endl; - tqparentDockWidget()->setForcedFixedHeight( m_tb->height() ); + parentDockWidget()->setForcedFixedHeight( m_tb->height() ); activateOverlapMode( m_tb->height() ); } // try to restore splitter size - if ( tqparentDockWidget() && tqparentDockWidget()->tqparent() ) + if ( parentDockWidget() && parentDockWidget()->tqparent() ) { - KDockSplitter * sp = static_cast<KDockSplitter*>( tqparentDockWidget()->tqparent()->qt_cast( "KDockSplitter" ) ); + KDockSplitter * sp = static_cast<KDockSplitter*>( parentDockWidget()->tqparent()->qt_cast( "KDockSplitter" ) ); if ( sp ) sp->setSeparatorPosX( m_separatorPos ); } } -KDockWidget* KMdiDockContainer::tqparentDockWidget() +KDockWidget* KMdiDockContainer::parentDockWidget() { return ( ( KDockWidget* ) tqparent() ); } @@ -201,8 +201,8 @@ void KMdiDockContainer::insertWidget ( KDockWidget *dwdg, TQPixmap pixmap, const m_map.insert( w, tab ); m_revMap.insert( tab, w ); - if ( ( ( KDockWidget* ) tqparentWidget() ) ->mayBeShow() ) - ( ( KDockWidget* ) tqparentWidget() ) ->dockBack(); + if ( ( ( KDockWidget* ) parentWidget() ) ->mayBeShow() ) + ( ( KDockWidget* ) parentWidget() ) ->dockBack(); if ( w->getHeader()->qt_cast( "KDockWidgetHeader" ) ) { @@ -359,7 +359,7 @@ void KMdiDockContainer::hideIfNeeded() if ( itemNames.count() == 0 ) { kdDebug( 760 ) << k_funcinfo << "Hiding the dock container" << endl; - ( ( KDockWidget* ) tqparentWidget() )->undock(); + ( ( KDockWidget* ) parentWidget() )->undock(); } } @@ -421,14 +421,14 @@ void KMdiDockContainer::tabClicked( int t ) { kdDebug( 760 ) << k_funcinfo << "Showing widgetstack for tab just clicked" << endl; m_ws->show(); - tqparentDockWidget()->restoreFromForcedFixedSize(); + parentDockWidget()->restoreFromForcedFixedSize(); } if ( !m_ws->widget( t ) ) { kdDebug( 760 ) << k_funcinfo << "Widget tab was clicked for is not in our stack" << endl; kdDebug( 760 ) << k_funcinfo << "Docking it back in" << endl; - m_revMap[t]->manualDock( tqparentDockWidget(), KDockWidget::DockCenter, 20 ); + m_revMap[t]->manualDock( parentDockWidget(), KDockWidget::DockCenter, 20 ); if ( call_makeVisible ) m_revMap[t]->makeDockVisible(); m_tabSwitching = false; @@ -462,9 +462,9 @@ void KMdiDockContainer::tabClicked( int t ) { kdDebug( 760 ) << k_funcinfo << "Tab " << t << " was just deactiviated" << endl; // try save splitter position - if ( tqparentDockWidget() && tqparentDockWidget()->tqparent() ) + if ( parentDockWidget() && parentDockWidget()->tqparent() ) { - KDockSplitter * sp = static_cast<KDockSplitter*>( tqparentDockWidget()->tqparent()->qt_cast( "KDockSplitter" ) ); + KDockSplitter * sp = static_cast<KDockSplitter*>( parentDockWidget()->tqparent()->qt_cast( "KDockSplitter" ) ); if ( sp ) m_separatorPos = sp->separatorPos(); } @@ -484,9 +484,9 @@ void KMdiDockContainer::tabClicked( int t ) kdDebug( 760 ) << k_funcinfo << "Fixed Width:" << m_tb->width() << endl; if ( !m_horizontal ) - tqparentDockWidget()->setForcedFixedWidth( m_tb->width() ); // strange why it worked before at all + parentDockWidget()->setForcedFixedWidth( m_tb->width() ); // strange why it worked before at all else - tqparentDockWidget()->setForcedFixedHeight( m_tb->height() ); // strange why it worked before at all + parentDockWidget()->setForcedFixedHeight( m_tb->height() ); // strange why it worked before at all } m_tabSwitching = false; } @@ -589,9 +589,9 @@ void KMdiDockContainer::load( TQDomElement& dockEl ) TQPtrListIterator<KMultiTabBarTab> it1( *tl ); m_ws->hide(); if ( !m_horizontal ) - tqparentDockWidget()->setForcedFixedWidth( m_tb->width() ); + parentDockWidget()->setForcedFixedWidth( m_tb->width() ); else - tqparentDockWidget()->setForcedFixedHeight( m_tb->height() ); + parentDockWidget()->setForcedFixedHeight( m_tb->height() ); for ( ;it1.current() != 0;++it1 ) m_tb->setTab( it1.current() ->id(), false ); @@ -633,9 +633,9 @@ void KMdiDockContainer::save( KConfig* cfg, const TQString& group_or_prefix ) cfg->writeEntry( "overlapMode", "false" ); // try to save the splitter position - if ( tqparentDockWidget() && tqparentDockWidget() ->tqparent() ) + if ( parentDockWidget() && parentDockWidget() ->tqparent() ) { - KDockSplitter * sp = static_cast<KDockSplitter*>( tqparentDockWidget() -> + KDockSplitter * sp = static_cast<KDockSplitter*>( parentDockWidget() -> tqparent() ->qt_cast( "KDockSplitter" ) ); if ( sp ) cfg->writeEntry( "separatorPos", m_separatorPos ); @@ -714,9 +714,9 @@ void KMdiDockContainer::load( KConfig* cfg, const TQString& group_or_prefix ) TQPtrListIterator<KMultiTabBarTab> it1( *tl ); m_ws->hide(); if ( !m_horizontal ) - tqparentDockWidget() ->setForcedFixedWidth( m_tb->width() ); + parentDockWidget() ->setForcedFixedWidth( m_tb->width() ); else - tqparentDockWidget() ->setForcedFixedHeight( m_tb->height() ); + parentDockWidget() ->setForcedFixedHeight( m_tb->height() ); for ( ;it1.current() != 0;++it1 ) { m_tb->setTab( it1.current() ->id(), false ); |