diff options
Diffstat (limited to 'src/widgets/qdockwindow.cpp')
-rw-r--r-- | src/widgets/qdockwindow.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/widgets/qdockwindow.cpp b/src/widgets/qdockwindow.cpp index a0f4163c1..8e6996338 100644 --- a/src/widgets/qdockwindow.cpp +++ b/src/widgets/qdockwindow.cpp @@ -493,7 +493,7 @@ void TQDockWindowHandle::minimize() if ( !dockWindow->area() ) return; - TQMainWindow *mw = ::qt_cast<TQMainWindow*>(dockWindow->area()->parentWidget()); + TQMainWindow *mw = ::tqt_cast<TQMainWindow*>(dockWindow->area()->parentWidget()); if ( mw && mw->isDockEnabled( dockWindow, TQt::DockMinimized ) ) mw->moveDockWindow( dockWindow, TQt::DockMinimized ); } @@ -1031,13 +1031,13 @@ void TQDockWindow::init() if ( parentWidget() ) parentWidget()->installEventFilter( this ); TQWidget *mw = parentWidget(); - TQDockArea *da = ::qt_cast<TQDockArea*>(parentWidget()); + TQDockArea *da = ::tqt_cast<TQDockArea*>(parentWidget()); if ( da ) { if ( curPlace == InDock ) da->moveDockWindow( this ); mw = da->parentWidget(); } - if ( ::qt_cast<TQMainWindow*>(mw) ) { + if ( ::tqt_cast<TQMainWindow*>(mw) ) { if ( place() == InDock ) { Dock myDock = TQt::DockTop; // make sure we put the window in the correct dock. @@ -1123,7 +1123,7 @@ TQDockWindow::~TQDockWindow() TQDockArea *a = area(); if ( !a && dockWindowData ) a = ( (TQDockArea::DockWindowData*)dockWindowData )->area; - TQMainWindow *mw = a ? ::qt_cast<TQMainWindow*>(a->parentWidget()) : 0; + TQMainWindow *mw = a ? ::tqt_cast<TQMainWindow*>(a->parentWidget()) : 0; if ( mw ) mw->removeDockWindow( this ); @@ -1164,12 +1164,12 @@ TQWidget *TQDockWindow::areaAt( const TQPoint &gp ) w = parentWidget()->childAt( parentWidget()->mapFromGlobal( gp ) ); while ( w ) { - if ( ::qt_cast<TQDockArea*>(w) ) { + if ( ::tqt_cast<TQDockArea*>(w) ) { TQDockArea *a = (TQDockArea*)w; if ( a->isDockWindowAccepted( this ) ) return w; } - if ( ::qt_cast<TQMainWindow*>(w) ) { + if ( ::tqt_cast<TQMainWindow*>(w) ) { TQMainWindow *mw = (TQMainWindow*)w; TQDockArea *a = mw->dockingArea( mw->mapFromGlobal( gp ) ); if ( a && a->isDockWindowAccepted( this ) ) @@ -1197,8 +1197,8 @@ void TQDockWindow::handleMove( const TQPoint &pos, const TQPoint &gp, bool drawR if ( titleBar->ctrlDown || horHandle->ctrlDown || verHandle->ctrlDown ) w = 0; currRect.moveBy( pos.x(), pos.y() ); - if ( !::qt_cast<TQDockArea*>(w) ) { - if ( startOrientation != Horizontal && ::qt_cast<TQToolBar*>(this) ) + if ( !::tqt_cast<TQDockArea*>(w) ) { + if ( startOrientation != Horizontal && ::tqt_cast<TQToolBar*>(this) ) swapRect( currRect, Horizontal, startOffset, (TQDockArea*)w ); if ( drawRect ) { unclippedPainter->setPen( TQPen( gray, 3 ) ); @@ -1396,14 +1396,14 @@ void TQDockWindow::updatePosition( const TQPoint &globalPos ) } else { if ( dockArea ) { TQMainWindow *mw = (TQMainWindow*)dockArea->parentWidget(); - if ( ::qt_cast<TQMainWindow*>(mw) && + if ( ::tqt_cast<TQMainWindow*>(mw) && ( !mw->isDockEnabled( TQMainWindow::DockTornOff ) || !mw->isDockEnabled( this, TQMainWindow::DockTornOff ) ) ) return; delete (TQDockArea::DockWindowData*)dockWindowData; dockWindowData = dockArea->dockWindowData( this ); dockArea->removeDockWindow( this, TRUE, - startOrientation != Horizontal && ::qt_cast<TQToolBar*>(this) ); + startOrientation != Horizontal && ::tqt_cast<TQToolBar*>(this) ); } dockArea = 0; TQPoint topLeft = currRect.topLeft(); @@ -1417,7 +1417,7 @@ void TQDockWindow::updatePosition( const TQPoint &globalPos ) move( topLeft ); } - if ( curPlace == InDock && state == OutsideDock && !::qt_cast<TQToolBar*>(this) ) { + if ( curPlace == InDock && state == OutsideDock && !::tqt_cast<TQToolBar*>(this) ) { if ( lastSize != TQSize( -1, -1 ) ) resize( lastSize ); } @@ -1431,7 +1431,7 @@ void TQDockWindow::updatePosition( const TQPoint &globalPos ) tmpDockArea = 0; if ( doAdjustSize ) { TQApplication::sendPostedEvents( this, TQEvent::LayoutHint ); - if ( ::qt_cast<TQToolBar*>(this) ) + if ( ::tqt_cast<TQToolBar*>(this) ) adjustSize(); if (lastSize == TQSize(-1, -1)) clearWState(WState_Resized); // Ensures size is recalculated (non-opaque). @@ -1706,7 +1706,7 @@ TQt::Orientation TQDockWindow::orientation() const { if ( dockArea ) return dockArea->orientation(); - if ( ::qt_cast<TQToolBar*>(this) ) + if ( ::tqt_cast<TQToolBar*>(this) ) return Horizontal; return ( ((TQDockWindow*)this)->boxLayout()->direction() == TQBoxLayout::LeftToRight || ((TQDockWindow*)this)->boxLayout()->direction() == TQBoxLayout::RightToLeft ? @@ -1861,7 +1861,7 @@ void TQDockWindow::undock( TQWidget *w ) { TQMainWindow *mw = 0; if ( area() ) - mw = ::qt_cast<TQMainWindow*>(area()->parentWidget()); + mw = ::tqt_cast<TQMainWindow*>(area()->parentWidget()); if ( mw && !mw->isDockEnabled( this, DockTornOff ) ) return; if ( (place() == OutsideDock && !w) ) @@ -1873,7 +1873,7 @@ void TQDockWindow::undock( TQWidget *w ) if ( dockArea ) { delete (TQDockArea::DockWindowData*)dockWindowData; dockWindowData = dockArea->dockWindowData( this ); - dockArea->removeDockWindow( this, TRUE, orientation() != Horizontal && ::qt_cast<TQToolBar*>(this) ); + dockArea->removeDockWindow( this, TRUE, orientation() != Horizontal && ::tqt_cast<TQToolBar*>(this) ); } dockArea = 0; if ( lastPos != TQPoint( -1, -1 ) && lastPos.x() > 0 && lastPos.y() > 0 ) @@ -1886,7 +1886,7 @@ void TQDockWindow::undock( TQWidget *w ) updateGui(); emit orientationChanged( orientation() ); TQApplication::sendPostedEvents( this, TQEvent::LayoutHint ); - if ( ::qt_cast<TQToolBar*>(this) ) + if ( ::tqt_cast<TQToolBar*>(this) ) adjustSize(); if ( !w ) { if ( !parentWidget() || parentWidget()->isVisible() ) { @@ -2110,7 +2110,7 @@ void TQDockWindow::contextMenuEvent( TQContextMenuEvent *e ) { TQObject *o = this; while ( o ) { - if ( ::qt_cast<TQMainWindow*>(o) ) + if ( ::tqt_cast<TQMainWindow*>(o) ) break; o = o->parent(); } |