From eb1d1e0dec5720ace27395e290b7093cd68b150d Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 6 Mar 2012 20:38:40 -0600 Subject: Automated update from qt3 --- src/widgets/qdockarea.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/widgets/qdockarea.cpp') diff --git a/src/widgets/qdockarea.cpp b/src/widgets/qdockarea.cpp index 0e2555bd7..760db5382 100644 --- a/src/widgets/qdockarea.cpp +++ b/src/widgets/qdockarea.cpp @@ -235,7 +235,7 @@ static int point_pos( const TQPoint &p, TQt::Orientation o, bool swap = FALSE ) static void shrink_extend( TQDockWindow *dw, int &dockExtend, int /*spaceLeft*/, TQt::Orientation o ) { - TQToolBar *tb = ::qt_cast(dw); + TQToolBar *tb = ::tqt_cast(dw); if ( o == TQt::Horizontal ) { int mw = 0; if ( !tb ) @@ -258,7 +258,7 @@ static void place_line( TQValueList &lastLine, TQt::Orientation o, int TQDockWindow *last = 0; TQRect lastRect; for ( TQValueList::Iterator it = lastLine.begin(); it != lastLine.end(); ++it ) { - if ( tbstrut != -1 && ::qt_cast((*it).w) ) + if ( tbstrut != -1 && ::tqt_cast((*it).w) ) (*it).rect.setHeight( tbstrut ); if ( !last ) { last = (*it).w; @@ -391,7 +391,7 @@ int TQDockAreaLayout::layoutItems( const TQRect &rect, bool testonly ) // do some calculations and add the remember the rect which the docking widget requires for the placing TQRect dwRect(pos, sectionpos, dockExtend, dock_strut( dw, orientation() ) ); lastLine.append( DockData( dw, dwRect ) ); - if ( ::qt_cast(dw) ) + if ( ::tqt_cast(dw) ) tbstrut = TQMAX( tbstrut, dock_strut( dw, orientation() ) ); linestrut = TQMAX( dock_strut( dw, orientation() ), linestrut ); add_size( dockExtend, pos, orientation() ); @@ -926,7 +926,7 @@ void TQDockArea::updateLayout() bool TQDockArea::eventFilter( TQObject *o, TQEvent *e ) { if ( e->type() == TQEvent::Close ) { - if ( ::qt_cast(o) ) { + if ( ::tqt_cast(o) ) { o->removeEventFilter( this ); TQApplication::sendEvent( o, e ); if ( ( (TQCloseEvent*)e )->isAccepted() ) @@ -1087,7 +1087,7 @@ bool TQDockArea::isDockWindowAccepted( TQDockWindow *dw ) if ( forbiddenWidgets.findRef( dw ) != -1 ) return FALSE; - TQMainWindow *mw = ::qt_cast(parentWidget()); + TQMainWindow *mw = ::tqt_cast(parentWidget()); if ( !mw ) return TRUE; if ( !mw->hasDockWindow( dw ) ) @@ -1145,7 +1145,7 @@ int TQDockArea::maxSpace( int hint, TQDockWindow *dw ) return dw->height(); } int min = 0; - TQToolBar *tb = ::qt_cast(w); + TQToolBar *tb = ::tqt_cast(w); if ( orientation() == Horizontal ) { w->setFixedExtentWidth( -1 ); if ( !tb ) -- cgit v1.2.3