summaryrefslogtreecommitdiffstats
path: root/experimental/tqtinterface/qt4/src/kernel/tqwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'experimental/tqtinterface/qt4/src/kernel/tqwidget.cpp')
-rw-r--r--experimental/tqtinterface/qt4/src/kernel/tqwidget.cpp52
1 files changed, 26 insertions, 26 deletions
diff --git a/experimental/tqtinterface/qt4/src/kernel/tqwidget.cpp b/experimental/tqtinterface/qt4/src/kernel/tqwidget.cpp
index 67d0e1be9..c6523df35 100644
--- a/experimental/tqtinterface/qt4/src/kernel/tqwidget.cpp
+++ b/experimental/tqtinterface/qt4/src/kernel/tqwidget.cpp
@@ -249,7 +249,7 @@ TQMetaObject *TQWidget::tqmetaObject() const {
return TQT_TQOBJECT_CONST(this)->tqmetaObject();
}
-TQWidget * TQWidget::tqfind( WId w ) {
+TQWidget * TQWidget::find( WId w ) {
return static_cast<TQWidget*>(find(w));
}
@@ -910,7 +910,7 @@ void TQWidget::setKeyCompression(bool compress)
Returns the focus data for this widget's top-level widget.
Focus data always belongs to the top-level widget. The focus data
- list tqcontains all the widgets in this top-level widget that can
+ list contains all the widgets in this top-level widget that can
accept focus, in tab order. An iterator points to the current
focus widget (tqfocusWidget() returns a pointer to this widget).
@@ -1886,7 +1886,7 @@ bool TQWidget::event( TQEvent *e )
// // }
// // }
// // if ( e->type() == TQEvent::LanguageChange ) {
-// // int index = tqmetaObject()->tqfindSlot( "languageChange()", TRUE );
+// // int index = tqmetaObject()->findSlot( "languageChange()", TRUE );
// // if ( index >= 0 )
// // qt_invoke( index, 0 );
// // }
@@ -2010,7 +2010,7 @@ void TQWidget::mousePressEvent( TQMouseEvent *e )
if (tqApp->activePopupWidget() == w) // widget does not want to dissappear
w->hide(); // hide at least
}
- if (!TQT_TQRECT_OBJECT(rect()).tqcontains(e->pos()) ){
+ if (!TQT_TQRECT_OBJECT(rect()).contains(e->pos()) ){
close();
}
}
@@ -2931,7 +2931,7 @@ WState TQWidget::testWState( TQt::WidgetState s ) const {
reparent(),
polish(),
winId(),
- tqfind(),
+ find(),
metric().
\row \i What's this help \i
@@ -2967,7 +2967,7 @@ WState TQWidget::testWState( TQt::WidgetState s ) const {
\endlist
The tictac/tictac.cpp example program is good example of a simple
- widget. It tqcontains a few event handlers (as all widgets must), a
+ widget. It contains a few event handlers (as all widgets must), a
few custom routines that are specific to it (as all useful widgets
do), and has a few tqchildren and connections. Everything it does
is done in response to an event: this is by far the most common way
@@ -3012,7 +3012,7 @@ WState TQWidget::testWState( TQt::WidgetState s ) const {
\endlist
- If your widget only tqcontains child widgets, you probably do not need to
+ If your widget only contains child widgets, you probably do not need to
implement any event handlers. If you want to detect a mouse click in
a child widget call the child's hasMouse() function inside the
tqparent widget's mousePressEvent().
@@ -3131,7 +3131,7 @@ class TQWidgetMapper : public TQWidgetIntDict
public:
TQWidgetMapper();
~TQWidgetMapper();
- TQWidget *tqfind( WId id ); // tqfind widget
+ TQWidget *find( WId id ); // find widget
void insert( const TQWidget * ); // insert widget
bool remove( WId id ); // remove widget
private:
@@ -3153,10 +3153,10 @@ TQWidgetMapper::~TQWidgetMapper()
clear();
}
-inline TQWidget *TQWidgetMapper::tqfind( WId id )
+inline TQWidget *TQWidgetMapper::find( WId id )
{
if ( id != cur_id ) { // need to lookup
- cur_widget = TQWidgetIntDict::tqfind((long)id);
+ cur_widget = TQWidgetIntDict::find((long)id);
if ( cur_widget )
cur_id = id;
else
@@ -3577,7 +3577,7 @@ TQWidget::TQWidget( TQWidget *tqparent, const char *name, WFlags f )
if ( isTopLevel() ) {
setWState( WState_ForceHide | WState_CreatedHidden );
TQFocusData *fd = focusData( TRUE );
- if ( fd->tqfocusWidgets.tqfindRef(this) < 0 )
+ if ( fd->tqfocusWidgets.findRef(this) < 0 )
fd->tqfocusWidgets.append( this );
} else {
// propagate enabled state
@@ -3900,9 +3900,9 @@ void TQWidget::deactivateWidgetCleanup()
is no widget with this identifier, 0 is returned.
*/
-TQWidget *TQWidget::tqfind( WId id )
+TQWidget *TQWidget::find( WId id )
{
- return mapper ? mapper->tqfind( id ) : 0;
+ return mapper ? mapper->find( id ) : 0;
}
/*!
@@ -3912,7 +3912,7 @@ TQWidget *TQWidget::tqfind( WId id )
The widget mapper is an internal dictionary that is used to map from
window identifiers/handles to widget pointers.
- \sa tqfind(), id()
+ \sa find(), id()
*/
/*!
@@ -3955,7 +3955,7 @@ TQWidget *TQWidget::tqfind( WId id )
Portable in principle, but if you use it you are probably about to
do something non-portable. Be careful.
- \sa tqfind()
+ \sa find()
*/
#ifndef TQT_NO_STYLE
@@ -5205,7 +5205,7 @@ void TQWidget::setBackgroundFromMode()
This enum describes how the background of a widget changes, as the
widget's palette changes.
- The background is what the widget tqcontains when \link
+ The background is what the widget contains when \link
TQWidget::paintEvent() paintEvent()\endlink is called. To minimize
flicker, this should be the most common color or pixmap in the
widget. For \c PaletteBackground, use tqcolorGroup().brush( \c
@@ -6054,7 +6054,7 @@ void TQWidget::clearFocus()
/*!
Finds a new widget to give the keyboard focus to, as appropriate
- for Tab and Shift+Tab, and returns TRUE if is can tqfind a new
+ for Tab and Shift+Tab, and returns TRUE if is can find a new
widget and FALSE if it can't,
If \a next is TRUE, this function searches "forwards", if \a next
@@ -6128,7 +6128,7 @@ TQWidget *TQWidget::tqfocusWidget() const
Returns the focus data for this widget's top-level widget.
Focus data always belongs to the top-level widget. The focus data
- list tqcontains all the widgets in this top-level widget that can
+ list contains all the widgets in this top-level widget that can
accept focus, in tab order. An iterator points to the current
focus widget (tqfocusWidget() returns a pointer to this widget).
@@ -6223,7 +6223,7 @@ void TQWidget::setKeyCompression(bool compress)
\property TQWidget::isActiveWindow
\brief whether this widget is the active window
- The active window is the window that tqcontains the widget
+ The active window is the window that contains the widget
that has keyboard focus.
When popup windows are visible, this property is TRUE for both the
@@ -6330,7 +6330,7 @@ void TQWidget::setTabOrder( TQWidget* first, TQWidget *second )
TQFocusData *f = first->focusData( TRUE );
bool focusThere = (f->it.current() == second );
f->tqfocusWidgets.removeRef( second );
- if ( f->tqfocusWidgets.tqfindRef( first ) >= 0 )
+ if ( f->tqfocusWidgets.findRef( first ) >= 0 )
f->tqfocusWidgets.insert( f->tqfocusWidgets.at() + 1, second );
else
f->tqfocusWidgets.append( second );
@@ -6382,7 +6382,7 @@ void TQWidget::reparentFocusWidgets( TQWidget * oldtlw )
} while( from->tqfocusWidgets.current() );
}
- if ( to->tqfocusWidgets.tqfindRef(this) < 0 )
+ if ( to->tqfocusWidgets.findRef(this) < 0 )
to->tqfocusWidgets.append( this );
if ( !isTopLevel() && extra && extra->topextra && extra->topextra->focusData ) {
@@ -6544,7 +6544,7 @@ void TQWidget::setFocusPolicy( FocusPolicy policy )
focusProxy()->setFocusPolicy( policy );
if ( policy != NoFocus ) {
TQFocusData * f = focusData( TRUE );
- if ( f->tqfocusWidgets.tqfindRef( this ) < 0 )
+ if ( f->tqfocusWidgets.findRef( this ) < 0 )
f->tqfocusWidgets.append( this );
}
focus_policy = (uint) policy;
@@ -6957,7 +6957,7 @@ bool TQWidget::close( bool alsoDelete )
bool deleted = FALSE;
TQCloseEvent e;
TQApplication::sendEvent( this, &e );
- deleted = !TQWidget::tqfind(id);
+ deleted = !TQWidget::find(id);
if ( !deleted && !e.isAccepted() ) {
is_closing = 0;
return FALSE;
@@ -7586,7 +7586,7 @@ bool TQWidget::event( TQEvent *e )
}
}
if ( e->type() == TQEvent::LanguageChange ) {
- int index = tqmetaObject()->tqfindSlot( "languageChange()", TRUE );
+ int index = tqmetaObject()->findSlot( "languageChange()", TRUE );
if ( index >= 0 )
qt_invoke( index, 0 );
}
@@ -7698,7 +7698,7 @@ void TQWidget::mousePressEvent( TQMouseEvent *e )
if (tqApp->activePopupWidget() == w) // widget does not want to dissappear
w->hide(); // hide at least
}
- if (!rect().tqcontains(e->pos()) ){
+ if (!rect().contains(e->pos()) ){
close();
}
}
@@ -8566,7 +8566,7 @@ bool TQWidget::customWhatsThis() const
*/
TQWidget *TQWidget::tqchildAt( int x, int y, bool includeThis ) const
{
- if ( !rect().tqcontains( x, y ) )
+ if ( !rect().contains( x, y ) )
return 0;
if ( childrenListObject() ) {
TQObjectListIt it( *childrenListObject() );