diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-08-09 22:25:47 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-08-09 22:25:47 -0500 |
commit | 03256f3cd5149f3ff5f5f45765b0b0659db4e036 (patch) | |
tree | caabe9e1c0e3edfd06ea5aefd4d7279664cd9ede /experimental/tqtinterface/qt4/src/kernel/tqdnd_x11.cpp | |
parent | 0594950f65a713c2d12e8eb6ddd3f5f9b306ec08 (diff) | |
download | tde-03256f3cd5149f3ff5f5f45765b0b0659db4e036.tar.gz tde-03256f3cd5149f3ff5f5f45765b0b0659db4e036.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
Diffstat (limited to 'experimental/tqtinterface/qt4/src/kernel/tqdnd_x11.cpp')
-rw-r--r-- | experimental/tqtinterface/qt4/src/kernel/tqdnd_x11.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/experimental/tqtinterface/qt4/src/kernel/tqdnd_x11.cpp b/experimental/tqtinterface/qt4/src/kernel/tqdnd_x11.cpp index 56d00d45f..471df7008 100644 --- a/experimental/tqtinterface/qt4/src/kernel/tqdnd_x11.cpp +++ b/experimental/tqtinterface/qt4/src/kernel/tqdnd_x11.cpp @@ -81,7 +81,7 @@ extern void qt_leave_modal( TQWidget *widget ); } #endif -extern Window qt_x11_tqfindClientWindow( Window, Atom, bool ); +extern Window qt_x11_findClientWindow( Window, Atom, bool ); extern Atom qt_wm_state; // this stuff is copied from qclb_x11.cpp @@ -404,7 +404,7 @@ const char* qt_xdnd_atom_to_str( Atom a ) qt_xdnd_drag_types->setAutoDelete( TRUE ); } TQCString* result; - if ( !(result=qt_xdnd_drag_types->tqfind( a )) ) { + if ( !(result=qt_xdnd_drag_types->find( a )) ) { const char* mimeType = XGetAtomName( TQPaintDevice::x11AppDisplay(), a ); if ( !mimeType ) return 0; // only happens on protocol error @@ -425,7 +425,7 @@ Atom* qt_xdnd_str_to_atom( const char *mimeType ) } Atom * result; - if ( (result = qt_xdnd_atom_numbers->tqfind( mimeType )) ) + if ( (result = qt_xdnd_atom_numbers->find( mimeType )) ) return result; result = new Atom; @@ -489,7 +489,7 @@ void qt_xdnd_cleanup() } -static TQWidget * tqfind_child( TQWidget * tlw, TQPoint & p ) +static TQWidget * find_child( TQWidget * tlw, TQPoint & p ) { TQWidget * w = tlw; @@ -608,7 +608,7 @@ void qt_handle_xdnd_position( TQWidget *w, const XEvent * xe, bool passive ) const unsigned long *l = (const unsigned long *)xe->xclient.data.l; TQPoint p( (l[2] & 0xffff0000) >> 16, l[2] & 0x0000ffff ); - TQWidget * c = tqfind_child( w, p ); // changes p to to c-local coordinates + TQWidget * c = find_child( w, p ); // changes p to to c-local coordinates if (!passive && checkEmbedded(c, xe)) return; @@ -728,7 +728,7 @@ void qt_handle_xdnd_position( TQWidget *w, const XEvent * xe, bool passive ) // reset qt_xdnd_target_current_time = CurrentTime; - TQWidget * source = TQWidget::tqfind( qt_xdnd_dragsource_xid ); + TQWidget * source = TQWidget::find( qt_xdnd_dragsource_xid ); if ( source && source->isDesktop() && !source->acceptDrops() ) source = 0; @@ -811,7 +811,7 @@ void qt_xdnd_send_leave() leave.data.l[3] = 0; // w, h leave.data.l[4] = 0; // just null - TQWidget * w = TQWidget::tqfind( qt_xdnd_current_proxy_target ); + TQWidget * w = TQWidget::find( qt_xdnd_current_proxy_target ); if ( w && w->isDesktop() && !w->acceptDrops() ) w = 0; @@ -1164,7 +1164,7 @@ void TQDragManager::cancel( bool deleteSource ) } static -Window tqfindRealWindow( const TQPoint & pos, Window w, int md ) +Window findRealWindow( const TQPoint & pos, Window w, int md ) { if ( qt_xdnd_deco && w == qt_xdnd_deco->winId() ) return 0; @@ -1198,14 +1198,14 @@ Window tqfindRealWindow( const TQPoint & pos, Window w, int md ) if ( XQueryTree( TQPaintDevice::x11AppDisplay(), w, &r, &p, &c, &nc ) ) { r=0; for (uint i=nc; !r && i--; ) { - r = tqfindRealWindow( pos-TQPoint(attr.x,attr.y), + r = findRealWindow( pos-TQPoint(attr.x,attr.y), c[i], md-1 ); } XFree(c); if ( r ) return r; - // We didn't tqfind a client window! Just use the + // We didn't find a client window! Just use the // innermost window. } @@ -1282,7 +1282,7 @@ void TQDragManager::move( const TQPoint & globalPos ) if (type) break; - // tqfind child at the coordinates + // find child at the coordinates if (!XTranslateCoordinates( TQPaintDevice::x11AppDisplay(), src, src, lx, ly, &lx2, &ly2, &target)) { target = 0; @@ -1290,13 +1290,13 @@ void TQDragManager::move( const TQPoint & globalPos ) } } if ( qt_xdnd_deco && (!target || target == qt_xdnd_deco->winId()) ) { - target = tqfindRealWindow(globalPos,rootwin,6); + target = findRealWindow(globalPos,rootwin,6); } } TQWidget* w; if ( target ) { - w = TQWidget::tqfind( (WId)target ); + w = TQWidget::find( (WId)target ); if ( w && w->isDesktop() && !w->acceptDrops() ) w = 0; } else { @@ -1442,7 +1442,7 @@ void TQDragManager::drop() drop.data.l[3] = 0; drop.data.l[4] = 0; - TQWidget * w = TQWidget::tqfind( qt_xdnd_current_proxy_target ); + TQWidget * w = TQWidget::find( qt_xdnd_current_proxy_target ); if ( w && w->isDesktop() && !w->acceptDrops() ) w = 0; @@ -1567,7 +1567,7 @@ static TQByteArray qt_xdnd_obtain_data( const char *format ) TQWidget* w; if ( qt_xdnd_dragsource_xid && qt_xdnd_source_object && - (w=TQWidget::tqfind( qt_xdnd_dragsource_xid )) + (w=TQWidget::find( qt_xdnd_dragsource_xid )) && (!w->isDesktop() || w->acceptDrops()) ) { TQDragObject * o = qt_xdnd_source_object; @@ -1583,8 +1583,8 @@ static TQByteArray qt_xdnd_obtain_data( const char *format ) if ( !qt_xdnd_target_data ) qt_xdnd_target_data = new TQIntDict<TQByteArray>( 17 ); - if ( qt_xdnd_target_data->tqfind( (int)*a ) ) { - result = *(qt_xdnd_target_data->tqfind( (int)*a )); + if ( qt_xdnd_target_data->find( (int)*a ) ) { + result = *(qt_xdnd_target_data->find( (int)*a )); } else { if ( XGetSelectionOwner( TQPaintDevice::x11AppDisplay(), qt_xdnd_selection ) == None ) |