diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-02-27 02:13:42 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-02-27 02:13:42 -0600 |
commit | 520c05ef06ce203ad32470730f68402bc7719157 (patch) | |
tree | 8d0bb18bbbecb4c837e232848905e5819db84b81 /src/widgets/qdockwindow.cpp | |
parent | b82553bf90cb5311cfe8e673b07cf6cffc95fd3c (diff) | |
download | tqt3-520c05ef06ce203ad32470730f68402bc7719157.tar.gz tqt3-520c05ef06ce203ad32470730f68402bc7719157.zip |
Automated update from qt3
Diffstat (limited to 'src/widgets/qdockwindow.cpp')
-rw-r--r-- | src/widgets/qdockwindow.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/widgets/qdockwindow.cpp b/src/widgets/qdockwindow.cpp index 875f6d610..a0f4163c1 100644 --- a/src/widgets/qdockwindow.cpp +++ b/src/widgets/qdockwindow.cpp @@ -442,7 +442,7 @@ void TQDockWindowHandle::mousePressEvent( TQMouseEvent *e ) if ( !dockWindow->dockArea ) return; ctrlDown = ( e->state() & ControlButton ) == ControlButton; - oldFocus = qApp->focusWidget(); + oldFocus = tqApp->focusWidget(); setFocus(); e->ignore(); if ( e->button() != LeftButton ) @@ -453,7 +453,7 @@ void TQDockWindowHandle::mousePressEvent( TQMouseEvent *e ) offset = e->pos(); dockWindow->startRectDraw( mapToGlobal( e->pos() ), !opaque ); if ( !opaque ) - qApp->installEventFilter( dockWindow ); + tqApp->installEventFilter( dockWindow ); } void TQDockWindowHandle::mouseMoveEvent( TQMouseEvent *e ) @@ -469,7 +469,7 @@ void TQDockWindowHandle::mouseMoveEvent( TQMouseEvent *e ) void TQDockWindowHandle::mouseReleaseEvent( TQMouseEvent *e ) { ctrlDown = FALSE; - qApp->removeEventFilter( dockWindow ); + tqApp->removeEventFilter( dockWindow ); if ( oldFocus ) oldFocus->setFocus(); if ( !mousePressed ) @@ -610,7 +610,7 @@ void TQDockWindowTitleBar::mousePressEvent( TQMouseEvent *e ) } ctrlDown = ( e->state() & ControlButton ) == ControlButton; - oldFocus = qApp->focusWidget(); + oldFocus = tqApp->focusWidget(); // setFocus activates the window, which deactivates the main window // not what we want, and not required anyway on Windows #ifndef Q_WS_WIN @@ -659,7 +659,7 @@ void TQDockWindowTitleBar::mouseReleaseEvent( TQMouseEvent *e ) } ctrlDown = FALSE; - qApp->removeEventFilter( dockWindow ); + tqApp->removeEventFilter( dockWindow ); if ( oldFocus ) oldFocus->setFocus(); @@ -1117,7 +1117,7 @@ void TQDockWindow::setOrientation( Orientation o ) TQDockWindow::~TQDockWindow() { - qApp->removeEventFilter( this ); + tqApp->removeEventFilter( this ); if ( area() ) area()->removeDockWindow( this, FALSE, FALSE ); TQDockArea *a = area(); @@ -1158,7 +1158,7 @@ void TQDockWindow::swapRect( TQRect &r, TQt::Orientation o, const TQPoint &offse TQWidget *TQDockWindow::areaAt( const TQPoint &gp ) { - TQWidget *w = qApp->widgetAt( gp, TRUE ); + TQWidget *w = tqApp->widgetAt( gp, TRUE ); if ( w && ( w == this || w == titleBar ) && parentWidget() ) w = parentWidget()->childAt( parentWidget()->mapFromGlobal( gp ) ); @@ -1407,7 +1407,7 @@ void TQDockWindow::updatePosition( const TQPoint &globalPos ) } dockArea = 0; TQPoint topLeft = currRect.topLeft(); - TQRect screen = qApp->desktop()->availableGeometry( topLeft ); + TQRect screen = tqApp->desktop()->availableGeometry( topLeft ); if ( !screen.contains( topLeft ) ) { topLeft.setY(TQMAX(topLeft.y(), screen.top())); topLeft.setY(TQMIN(topLeft.y(), screen.bottom()-height())); @@ -1968,7 +1968,7 @@ void TQDockWindow::hideEvent( TQHideEvent *e ) void TQDockWindow::showEvent( TQShowEvent *e ) { if (curPlace == OutsideDock && (parent() && strcmp(parent()->name(), "qt_hide_dock") != 0)) { - TQRect sr = qApp->desktop()->availableGeometry( this ); + TQRect sr = tqApp->desktop()->availableGeometry( this ); if ( !sr.contains( pos() ) ) { int nx = TQMIN( TQMAX( x(), sr.x() ), sr.right()-width() ); int ny = TQMIN( TQMAX( y(), sr.y() ), sr.bottom()-height() ); @@ -2060,7 +2060,7 @@ bool TQDockWindow::eventFilter( TQObject * o, TQEvent *e ) verHandle->mousePressed = titleBar->mousePressed = FALSE; endRectDraw( !opaque ); - qApp->removeEventFilter( this ); + tqApp->removeEventFilter( this ); return TRUE; } } else if ( ((TQWidget*)o)->topLevelWidget() != this && place() == OutsideDock && isTopLevel() ) { |