summaryrefslogtreecommitdiffstats
path: root/src/widgets/qdockwindow.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-03-06 20:38:40 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-03-06 20:38:40 -0600
commiteb1d1e0dec5720ace27395e290b7093cd68b150d (patch)
tree04a199ef5ea853d86a6f9a44716c0874d41c20f6 /src/widgets/qdockwindow.cpp
parentae8aba1e0f17943046e6bfa889b169f7fc41da0d (diff)
downloadtqt3-eb1d1e0dec5720ace27395e290b7093cd68b150d.tar.gz
tqt3-eb1d1e0dec5720ace27395e290b7093cd68b150d.zip
Automated update from qt3
Diffstat (limited to 'src/widgets/qdockwindow.cpp')
-rw-r--r--src/widgets/qdockwindow.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/widgets/qdockwindow.cpp b/src/widgets/qdockwindow.cpp
index a0f4163c..8e699633 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();
}