@ -140,7 +140,7 @@ KMdiDockContainer::~KMdiDockContainer()
KDockWidget * w = it . key ( ) ;
KDockWidget * w = it . key ( ) ;
if ( m_overlapButtons . tqcontains ( w ) )
if ( m_overlapButtons . tqcontains ( w ) )
{
{
( static _cast< KDockWidgetHeader * > ( w - > getHeader ( ) - > qt_cast ( " KDockWidgetHeader " ) ) ) - > removeButton ( m_overlapButtons [ w ] ) ;
( : : tqqt _cast< KDockWidgetHeader * > ( w - > getHeader ( ) ) ) - > removeButton ( m_overlapButtons [ w ] ) ;
m_overlapButtons . remove ( w ) ;
m_overlapButtons . remove ( w ) ;
}
}
m_map . remove ( w ) ;
m_map . remove ( w ) ;
@ -172,7 +172,7 @@ void KMdiDockContainer::init()
// try to restore splitter size
// try to restore splitter size
if ( parentDockWidget ( ) & & parentDockWidget ( ) - > tqparent ( ) )
if ( parentDockWidget ( ) & & parentDockWidget ( ) - > tqparent ( ) )
{
{
KDockSplitter * sp = static _cast< KDockSplitter * > ( parentDockWidget ( ) - > tqparent ( ) - > qt_cast ( " KDockSplitter " ) ) ;
KDockSplitter * sp = : : tqqt _cast< KDockSplitter * > ( parentDockWidget ( ) - > tqparent ( ) ) ;
if ( sp )
if ( sp )
sp - > setSeparatorPosX ( m_separatorPos ) ;
sp - > setSeparatorPosX ( m_separatorPos ) ;
}
}
@ -207,12 +207,12 @@ void KMdiDockContainer::insertWidget ( KDockWidget *dwdg, TQPixmap pixmap, const
if ( ( ( KDockWidget * ) tqparentWidget ( ) ) - > mayBeShow ( ) )
if ( ( ( KDockWidget * ) tqparentWidget ( ) ) - > mayBeShow ( ) )
( ( KDockWidget * ) tqparentWidget ( ) ) - > dockBack ( ) ;
( ( KDockWidget * ) tqparentWidget ( ) ) - > dockBack ( ) ;
if ( w - > getHeader ( ) - > qt_cast ( " KDockWidgetHeader " ) )
if ( : : tqqt_cast < KDockWidgetHeader * > ( w - > getHeader ( ) ) )
{
{
kdDebug ( 760 ) < < k_funcinfo < < " The dockwidget we're adding has a header " < < endl ;
kdDebug ( 760 ) < < k_funcinfo < < " The dockwidget we're adding has a header " < < endl ;
kdDebug ( 760 ) < < k_funcinfo < < " Adding our overlap mode button to it " < < endl ;
kdDebug ( 760 ) < < k_funcinfo < < " Adding our overlap mode button to it " < < endl ;
KDockWidgetHeader * hdr = static _cast< KDockWidgetHeader * > ( w - > getHeader ( ) - > qt_cast ( " KDockWidgetHeader " ) ) ;
KDockWidgetHeader * hdr = : : tqqt _cast< KDockWidgetHeader * > ( w - > getHeader ( ) ) ;
KDockButton_Private * btn = new KDockButton_Private ( hdr , " OverlapButton " ) ;
KDockButton_Private * btn = new KDockButton_Private ( hdr , " OverlapButton " ) ;
TQToolTip : : add ( btn , i18n ( " Switch between overlap and side by side mode " , " Overlap " ) ) ;
TQToolTip : : add ( btn , i18n ( " Switch between overlap and side by side mode " , " Overlap " ) ) ;
@ -272,7 +272,7 @@ bool KMdiDockContainer::eventFilter( TQObject *obj, TQEvent *event )
break ;
break ;
}
}
KDockWidgetHeader * hdr = static _cast< KDockWidgetHeader * > ( w - > getHeader ( ) - > qt_cast ( " KDockWidgetHeader " ) ) ;
KDockWidgetHeader * hdr = : : tqqt _cast< KDockWidgetHeader * > ( w - > getHeader ( ) ) ;
if ( ! hdr )
if ( ! hdr )
{
{
kdDebug ( 760 ) < < " Wrong header type in KMdiDockContainer::eventFilter " < < endl ;
kdDebug ( 760 ) < < " Wrong header type in KMdiDockContainer::eventFilter " < < endl ;
@ -387,7 +387,7 @@ void KMdiDockContainer::removeWidget( KDockWidget* dwdg )
m_revMap . remove ( id ) ;
m_revMap . remove ( id ) ;
if ( m_overlapButtons . tqcontains ( w ) )
if ( m_overlapButtons . tqcontains ( w ) )
{
{
( static _cast< KDockWidgetHeader * > ( w - > getHeader ( ) - > qt_cast ( " KDockWidgetHeader " ) ) ) - > removeButton ( m_overlapButtons [ w ] ) ;
( : : tqqt _cast< KDockWidgetHeader * > ( w - > getHeader ( ) ) ) - > removeButton ( m_overlapButtons [ w ] ) ;
m_overlapButtons . remove ( w ) ;
m_overlapButtons . remove ( w ) ;
}
}
KDockContainer : : removeWidget ( w ) ;
KDockContainer : : removeWidget ( w ) ;
@ -442,7 +442,7 @@ void KMdiDockContainer::tabClicked( int t )
if ( m_ws - > widget ( t ) )
if ( m_ws - > widget ( t ) )
{
{
m_ws - > raiseWidget ( t ) ;
m_ws - > raiseWidget ( t ) ;
KDockWidget * tmpDw = static _cast< KDockWidget * > ( m_ws - > widget ( t ) - > qt_cast ( " KDockWidget " ) ) ;
KDockWidget * tmpDw = : : tqqt _cast< KDockWidget * > ( m_ws - > widget ( t ) ) ;
if ( tmpDw )
if ( tmpDw )
{
{
if ( tmpDw - > getWidget ( ) )
if ( tmpDw - > getWidget ( ) )
@ -467,7 +467,7 @@ void KMdiDockContainer::tabClicked( int t )
// try save splitter position
// try save splitter position
if ( parentDockWidget ( ) & & parentDockWidget ( ) - > tqparent ( ) )
if ( parentDockWidget ( ) & & parentDockWidget ( ) - > tqparent ( ) )
{
{
KDockSplitter * sp = static _cast< KDockSplitter * > ( parentDockWidget ( ) - > tqparent ( ) - > qt_cast ( " KDockSplitter " ) ) ;
KDockSplitter * sp = : : tqqt _cast< KDockSplitter * > ( parentDockWidget ( ) - > tqparent ( ) ) ;
if ( sp )
if ( sp )
m_separatorPos = sp - > separatorPos ( ) ;
m_separatorPos = sp - > separatorPos ( ) ;
}
}
@ -638,8 +638,7 @@ void KMdiDockContainer::save( KConfig* cfg, const TQString& group_or_prefix )
// try to save the splitter position
// try to save the splitter position
if ( parentDockWidget ( ) & & parentDockWidget ( ) - > tqparent ( ) )
if ( parentDockWidget ( ) & & parentDockWidget ( ) - > tqparent ( ) )
{
{
KDockSplitter * sp = static_cast < KDockSplitter * > ( parentDockWidget ( ) - >
KDockSplitter * sp = : : tqqt_cast < KDockSplitter * > ( parentDockWidget ( ) - > tqparent ( ) ) ;
tqparent ( ) - > qt_cast ( " KDockSplitter " ) ) ;
if ( sp )
if ( sp )
cfg - > writeEntry ( " separatorPosition " , m_separatorPos ) ;
cfg - > writeEntry ( " separatorPosition " , m_separatorPos ) ;
}
}