diff options
Diffstat (limited to 'src/kernel/qdnd_x11.cpp')
-rw-r--r-- | src/kernel/qdnd_x11.cpp | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/src/kernel/qdnd_x11.cpp b/src/kernel/qdnd_x11.cpp index 149c2fe05..aeb025830 100644 --- a/src/kernel/qdnd_x11.cpp +++ b/src/kernel/qdnd_x11.cpp @@ -82,9 +82,9 @@ extern void qt_leave_modal( TQWidget *widget ); #endif extern Window qt_x11_findClientWindow( Window, Atom, bool ); -extern Atom qt_wm_state; -extern Time qt_x_time; -extern Time qt_x_user_time; +extern Atom tqt_wm_state; +extern Time tqt_x_time; +extern Time tqt_x_user_time; // this stuff is copied from qclb_x11.cpp @@ -460,7 +460,7 @@ void qt_xdnd_setup() { qt_x11_intern_atom( "QT_SELECTION", &qt_selection_property ); qt_x11_intern_atom( "INCR", &qt_incr_atom ); - qAddPostRoutine( qt_xdnd_cleanup ); + tqAddPostRoutine( qt_xdnd_cleanup ); } @@ -616,14 +616,14 @@ void qt_handle_xdnd_position( TQWidget *w, const XEvent * xe, bool passive ) } if ( l[0] != qt_xdnd_dragsource_xid ) { - //qDebug( "xdnd drag position from unexpected source (%08lx not %08lx)", + //tqDebug( "xdnd drag position from unexpected source (%08lx not %08lx)", // l[0], qt_xdnd_dragsource_xid ); return; } if (l[3] != 0) { // timestamp from the source - qt_xdnd_target_current_time = qt_x_user_time = l[3]; + qt_xdnd_target_current_time = tqt_x_user_time = l[3]; } XClientMessageEvent response; @@ -761,7 +761,7 @@ void qt_handle_xdnd_status( TQWidget * w, const XEvent * xe, bool /*passive*/ ) void qt_handle_xdnd_leave( TQWidget *w, const XEvent * xe, bool /*passive*/ ) { - //qDebug( "xdnd leave" ); + //tqDebug( "xdnd leave" ); if ( !qt_xdnd_current_widget || w->topLevelWidget() != qt_xdnd_current_widget->topLevelWidget() ) { return; // sanity @@ -780,7 +780,7 @@ void qt_handle_xdnd_leave( TQWidget *w, const XEvent * xe, bool /*passive*/ ) if ( l[0] != qt_xdnd_dragsource_xid ) { // This often happens - leave other-process window tquickly - //qDebug( "xdnd drag leave from unexpected source (%08lx not %08lx", + //tqDebug( "xdnd drag leave from unexpected source (%08lx not %08lx", //l[0], qt_xdnd_dragsource_xid ); qt_xdnd_current_widget = 0; return; @@ -839,17 +839,17 @@ void qt_handle_xdnd_drop( TQWidget *, const XEvent * xe, bool passive ) } const unsigned long *l = (const unsigned long *)xe->xclient.data.l; - //qDebug( "xdnd drop" ); + //tqDebug( "xdnd drop" ); if ( l[0] != qt_xdnd_dragsource_xid ) { - //qDebug( "xdnd drop from unexpected source (%08lx not %08lx", + //tqDebug( "xdnd drop from unexpected source (%08lx not %08lx", // l[0], qt_xdnd_dragsource_xid ); return; } if (l[2] != 0) { // update the "user time" from the timestamp in the event. - qt_xdnd_target_current_time = qt_x_user_time = l[2]; + qt_xdnd_target_current_time = tqt_x_user_time = l[2]; } if ( qt_xdnd_source_object ) @@ -910,7 +910,7 @@ void TQDragManager::timerEvent( TQTimerEvent* e ) Window root, child; int root_x, root_y, win_x, win_y; unsigned int mask; - XQueryPointer( qt_xdisplay(), qt_xrootwin( qt_xdnd_current_screen ), + XQueryPointer( tqt_xdisplay(), tqt_xrootwin( qt_xdnd_current_screen ), &root, &child, &root_x, &root_y, &win_x, &win_y, &mask ); if( updateMode( (ButtonState)qt_x11_translateButtonState( mask ))) qt_xdnd_source_sameanswer = TQRect(); // force move @@ -956,7 +956,7 @@ bool qt_xdnd_another_movement() qt_xdnd_was_move = false; qt_xdnd_found = false; XEvent dummy; - XCheckIfEvent( qt_xdisplay(), &dummy, qt_xdnd_predicate, NULL ); + XCheckIfEvent( tqt_xdisplay(), &dummy, qt_xdnd_predicate, NULL ); return qt_xdnd_was_move; } @@ -1309,7 +1309,7 @@ void TQDragManager::move( const TQPoint & globalPos ) unsigned long n, a; WId *proxy_id; qt_ignore_badwindow(); - r = XGetWindowProperty( qt_xdisplay(), target, qt_xdnd_proxy, 0, + r = XGetWindowProperty( tqt_xdisplay(), target, qt_xdnd_proxy, 0, 1, False, XA_WINDOW, &type, &f,&n,&a,(uchar**)&proxy_id ); if ( ( r != Success ) || qt_badwindow() ) { proxy_target = target = 0; @@ -1317,7 +1317,7 @@ void TQDragManager::move( const TQPoint & globalPos ) proxy_target = *proxy_id; XFree(proxy_id); proxy_id = 0; - r = XGetWindowProperty( qt_xdisplay(), proxy_target, qt_xdnd_proxy, 0, + r = XGetWindowProperty( tqt_xdisplay(), proxy_target, qt_xdnd_proxy, 0, 1, False, XA_WINDOW, &type, &f,&n,&a,(uchar**)&proxy_id ); if ( ( r != Success ) || qt_badwindow() || !type || !proxy_id || *proxy_id != proxy_target ) { // Bogus @@ -1330,7 +1330,7 @@ void TQDragManager::move( const TQPoint & globalPos ) if ( proxy_target ) { int *tv; qt_ignore_badwindow(); - r = XGetWindowProperty( qt_xdisplay(), proxy_target, qt_xdnd_aware, 0, + r = XGetWindowProperty( tqt_xdisplay(), proxy_target, qt_xdnd_aware, 0, 1, False, AnyPropertyType, &type, &f,&n,&a,(uchar**)&tv ); if ( r != Success ) { target = 0; @@ -1400,7 +1400,7 @@ void TQDragManager::move( const TQPoint & globalPos ) move.data.l[0] = object->source()->winId(); move.data.l[1] = 0; // flags move.data.l[2] = (globalPos.x() << 16) + globalPos.y(); - move.data.l[3] = qt_x_time; + move.data.l[3] = tqt_x_time; move.data.l[4] = qtaction_to_xdndaction( global_requested_action ); if ( w ) @@ -1434,7 +1434,7 @@ void TQDragManager::drop() drop.message_type = qt_xdnd_drop; drop.data.l[0] = object->source()->winId(); drop.data.l[1] = 0; // flags - drop.data.l[2] = qt_x_time; + drop.data.l[2] = tqt_x_time; drop.data.l[3] = 0; drop.data.l[4] = 0; @@ -1509,7 +1509,7 @@ bool qt_xdnd_handle_badwindow() bool TQDropEvent::provides( const char *mimeType ) const { - if ( qt_motifdnd_active && qstrnicmp( mimeType, "text/", 5 ) == 0 ) + if ( qt_motifdnd_active && tqstrnicmp( mimeType, "text/", 5 ) == 0 ) return TRUE; int n=0; @@ -1519,7 +1519,7 @@ bool TQDropEvent::provides( const char *mimeType ) const if ( !f ) return FALSE; n++; - } while( qstricmp( mimeType, f ) ); + } while( tqstricmp( mimeType, f ) ); return TRUE; } @@ -1617,7 +1617,7 @@ static TQByteArray qt_xdnd_obtain_data( const char *format ) qt_xdnd_selection, nbytes, FALSE ); } else if ( type != *a ) { - // (includes None) qDebug( "TQt clipboard: unknown atom %ld", type); + // (includes None) tqDebug( "TQt clipboard: unknown atom %ld", type); } #if 0 // this needs to be matched by a qt_xdnd_target_data->clear() @@ -1781,7 +1781,7 @@ bool TQDragManager::drag( TQDragObject * o, TQDragObject::DragMode mode ) qt_xdnd_deco->x11SetWindowTransient( dragSource->topLevelWidget()); tqApp->installEventFilter( this ); - qt_xdnd_source_current_time = qt_x_time; + qt_xdnd_source_current_time = tqt_x_time; XSetSelectionOwner( TQPaintDevice::x11AppDisplay(), qt_xdnd_selection, dragSource->topLevelWidget()->winId(), qt_xdnd_source_current_time ); |