diff options
Diffstat (limited to 'src/kernel/qdnd_x11.cpp')
-rw-r--r-- | src/kernel/qdnd_x11.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/kernel/qdnd_x11.cpp b/src/kernel/qdnd_x11.cpp index 8c64ce107..149c2fe05 100644 --- a/src/kernel/qdnd_x11.cpp +++ b/src/kernel/qdnd_x11.cpp @@ -965,11 +965,11 @@ bool TQDragManager::eventFilter( TQObject * o, TQEvent * e) if ( beingCancelled ) { if ( e->type() == TQEvent::KeyRelease && ((TQKeyEvent*)e)->key() == Key_Escape ) { - qApp->removeEventFilter( this ); + tqApp->removeEventFilter( this ); object = 0; dragSource = 0; beingCancelled = FALSE; - qApp->exit_loop(); + tqApp->exit_loop(); return TRUE; // block the key release } return FALSE; @@ -989,7 +989,7 @@ bool TQDragManager::eventFilter( TQObject * o, TQEvent * e) need_modifiers_check = FALSE; return TRUE; } else if ( e->type() == TQEvent::MouseButtonRelease ) { - qApp->removeEventFilter( this ); + tqApp->removeEventFilter( this ); if ( willDrop ) drop(); else @@ -997,7 +997,7 @@ bool TQDragManager::eventFilter( TQObject * o, TQEvent * e) object = 0; dragSource = 0; beingCancelled = FALSE; - qApp->exit_loop(); + tqApp->exit_loop(); return TRUE; } else if ( e->type() == TQEvent::DragResponse ) { if ( ((TQDragResponseEvent *)e)->dragAccepted() ) { @@ -1019,11 +1019,11 @@ bool TQDragManager::eventFilter( TQObject * o, TQEvent * e) TQKeyEvent *ke = ((TQKeyEvent*)e); if ( ke->key() == Key_Escape && e->type() == TQEvent::KeyPress ) { cancel(); - qApp->removeEventFilter( this ); + tqApp->removeEventFilter( this ); object = 0; dragSource = 0; beingCancelled = FALSE; - qApp->exit_loop(); + tqApp->exit_loop(); } else { if( updateMode(ke->stateAfter())) { qt_xdnd_source_sameanswer = TQRect(); // force move @@ -1125,7 +1125,7 @@ void TQDragManager::updateCursor() } #ifndef QT_NO_CURSOR if ( c ) - qApp->setOverrideCursor( *c, TRUE ); + tqApp->setOverrideCursor( *c, TRUE ); #endif } @@ -1738,7 +1738,7 @@ bool TQDragManager::drag( TQDragObject * o, TQDragObject::DragMode mode ) if ( object ) { cancel(); - qApp->removeEventFilter( this ); + tqApp->removeEventFilter( this ); beingCancelled = FALSE; } @@ -1754,7 +1754,7 @@ bool TQDragManager::drag( TQDragObject * o, TQDragObject::DragMode mode ) XEvent event; if ( XCheckTypedEvent( TQPaintDevice::x11AppDisplay(), ClientMessage, &event ) ) - qApp->x11ProcessEvent( &event ); + tqApp->x11ProcessEvent( &event ); now = TQTime::currentTime(); if ( started > now ) // crossed midnight @@ -1780,7 +1780,7 @@ bool TQDragManager::drag( TQDragObject * o, TQDragObject::DragMode mode ) dragSource = (TQWidget *)(object->parent()); qt_xdnd_deco->x11SetWindowTransient( dragSource->topLevelWidget()); - qApp->installEventFilter( this ); + tqApp->installEventFilter( this ); qt_xdnd_source_current_time = qt_x_time; XSetSelectionOwner( TQPaintDevice::x11AppDisplay(), qt_xdnd_selection, dragSource->topLevelWidget()->winId(), @@ -1795,7 +1795,7 @@ bool TQDragManager::drag( TQDragObject * o, TQDragObject::DragMode mode ) need_modifiers_check = FALSE; #ifndef QT_NO_CURSOR - qApp->setOverrideCursor( arrowCursor ); + tqApp->setOverrideCursor( arrowCursor ); restoreCursor = TRUE; updateCursor(); #endif @@ -1806,10 +1806,10 @@ bool TQDragManager::drag( TQDragObject * o, TQDragObject::DragMode mode ) if (!TQWidget::mouseGrabber()) qt_xdnd_deco->grabMouse(); - qApp->enter_loop(); // Do the DND. + tqApp->enter_loop(); // Do the DND. #ifndef QT_NO_CURSOR - qApp->restoreOverrideCursor(); + tqApp->restoreOverrideCursor(); #endif delete qt_xdnd_deco; |