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.cpp266
1 files changed, 133 insertions, 133 deletions
diff --git a/experimental/tqtinterface/qt4/src/kernel/tqwidget.cpp b/experimental/tqtinterface/qt4/src/kernel/tqwidget.cpp
index c6523df35..31b7fc92d 100644
--- a/experimental/tqtinterface/qt4/src/kernel/tqwidget.cpp
+++ b/experimental/tqtinterface/qt4/src/kernel/tqwidget.cpp
@@ -217,11 +217,11 @@ void TQWidget::destroyInputContext( void ) {
printf("[TQT UNIMPLEMENTED CALL] destroyInputContext()\n\r");
}
-TQWidget::TQWidget( QWidget* tqparent, const char* name, WFlags f ) : QWidget( tqparent, (Qt::WindowFlags)(f&(~WTQtFlagMask)) ), TQtUpperWidgetFlags((WFlags)0) {
+TQWidget::TQWidget( QWidget* parent, const char* name, WFlags f ) : QWidget( parent, (Qt::WindowFlags)(f&(~WTQtFlagMask)) ), TQtUpperWidgetFlags((WFlags)0) {
TQtUpperWidgetFlags = f & WTQtFlagMask;
TQT_TQWIDGET_REQUIRED_INITIALIZATION
static_cast<QWidget*>(this)->setObjectName(QString::fromAscii(name));
- TQT_TQOBJECT_REQUIRED_INITIALIZATION(tqparent)
+ TQT_TQOBJECT_REQUIRED_INITIALIZATION(parent)
}
void TQWidget::setActiveWindow( void ) {
@@ -286,7 +286,7 @@ void TQWidget::setName(const char *aName) {
TQWidget *TQWidget::parentWidget( bool sameWindow ) {
TQ_UNUSED(sameWindow);
- return static_cast<TQWidget*>(this->parent());
+ return static_cast<TQWidget*>(this->QWidget::parent());
}
bool TQWidget::isDialog() const {
@@ -984,11 +984,11 @@ void TQWidget::createTLExtra()
/*!
\property TQWidget::autoMask
- \brief whether the auto tqmask feature is enabled for the widget
+ \brief whether the auto mask feature is enabled for the widget
- Transtqparent widgets use a tqmask to define their visible region.
+ Transparent widgets use a mask to define their visible region.
TQWidget has some built-in support to make the task of
- recalculating the tqmask easier. When setting auto tqmask to TRUE,
+ recalculating the mask easier. When setting auto mask to TRUE,
updateMask() will be called whenever the widget is resized or
changes its focus state. Note that you must reimplement
updateMask() (which should include a call to setMask()) or nothing
@@ -996,7 +996,7 @@ void TQWidget::createTLExtra()
Note: when you re-implement resizeEvent(), focusInEvent() or
focusOutEvent() in your custom widgets and still want to ensure
- that the auto tqmask calculation works, you should add:
+ that the auto mask calculation works, you should add:
\code
if ( autoMask() )
@@ -1005,17 +1005,17 @@ void TQWidget::createTLExtra()
at the end of your event handlers. This is true for all member
functions that change the appearance of the widget in a way that
- requires a recalculation of the tqmask.
+ requires a recalculation of the mask.
While being a technically appealing concept, masks have a big
drawback: when using complex masks that cannot be expressed easily
with relatively simple regions, they can be very slow on some
- window systems. The classic example is a transtqparent label. The
+ window systems. The classic example is a transparent label. The
complex tqshape of its contents makes it necessary to represent its
- tqmask by a bitmap, which consumes both memory and time. If all you
+ mask by a bitmap, which consumes both memory and time. If all you
want is to blend the background of several neighboring widgets
together seamlessly, you will probably want to use
- setBackgroundOrigin() rather than a tqmask.
+ setBackgroundOrigin() rather than a mask.
\sa autoMask() updateMask() setMask() clearMask() setBackgroundOrigin()
*/
@@ -1048,7 +1048,7 @@ void TQWidget::setFocus(TQFocusEvent::Reason reason)
setFocus((Qt::FocusReason)reason);
}
-TQObject *TQWidget::tqparent() const {
+TQObject *TQWidget::parent() const {
return TQT_TQOBJECT(parent());
}
@@ -1388,8 +1388,8 @@ const TQPixmap TQWidget::iconPixmap() const {
/*!
This function can be reimplemented in a subclass to support
- transtqparent widgets. It should be called whenever a widget changes
- state in a way that means that the tqshape tqmask must be recalculated.
+ transparent widgets. It should be called whenever a widget changes
+ state in a way that means that the tqshape mask must be recalculated.
\sa setAutoMask(), updateMask(), setMask(), clearMask()
*/
@@ -2054,7 +2054,7 @@ void TQWidget::mouseDoubleClickEvent( TQMouseEvent *e )
If you reimplement this handler, it is very important that you
\link TQWheelEvent ignore()\endlink the event if you do not handle
- it, so that the widget's tqparent can interpret it.
+ it, so that the widget's parent can interpret it.
The default implementation ignores the event.
@@ -2074,7 +2074,7 @@ void TQWidget::wheelEvent( TQWheelEvent *e )
If you reimplement this handler, it is very important that you
\link TQTabletEvent ignore()\endlink the event if you do not handle
- it, so that the widget's tqparent can interpret it.
+ it, so that the widget's parent can interpret it.
The default implementation ignores the event.
@@ -2096,10 +2096,10 @@ void TQWidget::tabletEvent( TQTabletEvent *e )
If you reimplement this handler, it is very important that you
explicitly \link TQKeyEvent::ignore() ignore\endlink the event
- if you do not understand it, so that the widget's tqparent can
+ if you do not understand it, so that the widget's parent can
interpret it; otherwise, the event will be implicitly accepted.
Although top-level widgets are able to choose whether to accept
- or ignore unknown events because they have no tqparent widgets that
+ or ignore unknown events because they have no parent widgets that
could otherwise handle them, it is good practice to explicitly
ignore events to make widgets as reusable as possible.
@@ -2130,7 +2130,7 @@ void TQWidget::keyPressEvent( TQKeyEvent *e )
If you reimplement this handler, it is very important that you
\link TQKeyEvent ignore()\endlink the release if you do not
- understand it, so that the widget's tqparent can interpret it.
+ understand it, so that the widget's parent can interpret it.
The default implementation ignores the event.
@@ -2748,26 +2748,26 @@ WState TQWidget::testWState( TQt::WidgetState s ) const {
keyboard and other events from the window system, and paints a
representation of itself on the screen. Every widget is
rectangular, and they are sorted in a Z-order. A widget is
- clipped by its tqparent and by the widgets in front of it.
+ clipped by its parent and by the widgets in front of it.
- A widget that isn't embedded in a tqparent widget is called a
+ A widget that isn't embedded in a parent widget is called a
top-level widget. Usually, top-level widgets are windows with a
frame and a title bar (although it is also possible to create
top-level widgets without such decoration if suitable widget flags
are used). In TQt, TQMainWindow and the various subclasses of
TQDialog are the most common top-level windows.
- A widget without a tqparent widget is always a top-level widget.
+ A widget without a parent widget is always a top-level widget.
Non-top-level widgets are child widgets. These are child windows
- in their tqparent widgets. You cannot usually distinguish a child
- widget from its tqparent visually. Most other widgets in TQt are
+ in their parent widgets. You cannot usually distinguish a child
+ widget from its parent visually. Most other widgets in TQt are
useful only as child widgets. (It is possible to make, say, a
button into a top-level widget, but most people prefer to put
their buttons inside other widgets, e.g. TQDialog.)
If you want to use a TQWidget to hold child widgets you will
- probably want to add a tqlayout to the tqparent TQWidget. (See \link
+ probably want to add a tqlayout to the parent TQWidget. (See \link
tqlayout.html Layouts\endlink.)
TQWidget has many member functions, but some of them have little
@@ -2949,10 +2949,10 @@ WState TQWidget::testWState( TQt::WidgetState s ) const {
Every widget's constructor accepts two or three standard arguments:
\list 1
- \i \c{TQWidget *tqparent = 0} is the tqparent of the new widget.
+ \i \c{TQWidget *parent = 0} is the parent of the new widget.
If it is 0 (the default), the new widget will be a top-level window.
- If not, it will be a child of \e tqparent, and be constrained by \e
- tqparent's tqgeometry (unless you specify \c WType_TopLevel as
+ If not, it will be a child of \e parent, and be constrained by \e
+ parent's tqgeometry (unless you specify \c WType_TopLevel as
widget flag).
\i \c{const char *name = 0} is the widget name of the new
widget. You can access it using name(). The widget name is little
@@ -3015,7 +3015,7 @@ WState TQWidget::testWState( TQt::WidgetState s ) const {
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().
+ parent widget's mousePressEvent().
Widgets that accept keyboard input need to reimplement a few more
event handlers:
@@ -3070,7 +3070,7 @@ WState TQWidget::testWState( TQt::WidgetState s ) const {
space.
\i moveEvent() - called when the widget has been moved relative to its
- tqparent.
+ parent.
\i closeEvent() - called when the user closes the widget (or when
close() is called).
@@ -3258,7 +3258,7 @@ TQSize qt_naturalWidgetSize( TQWidget *w ) {
\i WState_Reparented The widget has been reparented.
\i WState_ConfigPending A configuration (resize/move) event is pending.
\i WState_Resized The widget has been resized.
- \i WState_AutoMask The widget has an automatic tqmask, see setAutoMask().
+ \i WState_AutoMask The widget has an automatic mask, see setAutoMask().
\i WState_Polished The widget has been "polished" (i.e. late
initialization) by a TQStyle.
\i WState_DND The widget supports drag and drop, see setAcceptDrops().
@@ -3294,11 +3294,11 @@ TQSize qt_naturalWidgetSize( TQWidget *w ) {
window that should be decorated as a dialog (i.e. typically no
maximize or minimize buttons in the title bar). If you want to use
it as a modal dialog it should be launched from another window, or
- have a tqparent and this flag should be combined with \c WShowModal.
+ have a parent and this flag should be combined with \c WShowModal.
If you make it modal, the dialog will prevent other top-level
windows in the application from getting any input. \c WType_Dialog
implies \c WType_TopLevel. We refer to a top-level window that has
- a tqparent as a \e secondary window. (See also \c WGroupLeader.)
+ a parent as a \e secondary window. (See also \c WGroupLeader.)
\value WType_Popup indicates that this widget is a popup
top-level window, i.e. that it is modal, but has a window system
@@ -3358,8 +3358,8 @@ TQSize qt_naturalWidgetSize( TQWidget *w ) {
\value WStyle_Tool makes the window a tool window. A tool window
is often a small window with a smaller than usual title bar and
decoration, typically used for collections of tool buttons. It
- there is a tqparent, the tool window will always be kept on top of
- it. If there isn't a tqparent, you may consider passing \c
+ there is a parent, the tool window will always be kept on top of
+ it. If there isn't a parent, you may consider passing \c
WStyle_StaysOnTop as well. If the window system supports it, a
tool window can be decorated with a somewhat lighter frame. It can
also be combined with \c WStyle_NoBorder.
@@ -3370,9 +3370,9 @@ TQSize qt_naturalWidgetSize( TQWidget *w ) {
this flag to work correctly.
\value WStyle_Dialog indicates that the window is a logical
- subwindow of its tqparent (i.e. a dialog). The window will not get
- its own taskbar entry and will be kept on top of its tqparent by the
- window system. Usually it will also be minimized when the tqparent
+ subwindow of its parent (i.e. a dialog). The window will not get
+ its own taskbar entry and will be kept on top of its parent by the
+ window system. Usually it will also be minimized when the parent
is minimized. If not customized, the window is decorated with a
slightly simpler title bar. This is the flag TQDialog uses.
@@ -3400,7 +3400,7 @@ TQSize qt_naturalWidgetSize( TQWidget *w ) {
system tqrepaint events directly. (This tends to produce more events
and smaller tqrepaint regions.)
- \value WMouseNoMask indicates that even if the widget has a tqmask,
+ \value WMouseNoMask indicates that even if the widget has a mask,
it wants mouse events for its entire rectangle.
\value WStaticContents indicates that the widget contents are
@@ -3415,11 +3415,11 @@ TQSize qt_naturalWidgetSize( TQWidget *w ) {
\value WResizeNoErase this value is obsolete; use WNoAutoErase instead.
\value WRepaintNoErase this value is obsolete; use WNoAutoErase instead.
\value WGroupLeader makes this window a group leader. A group
- leader should \e not have a tqparent (i.e. it should be a top-level
+ leader should \e not have a parent (i.e. it should be a top-level
window). Any decendant windows (direct or indirect) of a group
leader are in its group; other windows are not. If you show a
secondary window from the group (i.e. show a window whose top-most
- tqparent is a group leader), that window will be modal with respect
+ parent is a group leader), that window will be modal with respect
to the other windows in the group, but modeless with respect to
windows in other groups.
@@ -3495,19 +3495,19 @@ TQSize qt_naturalWidgetSize( TQWidget *w ) {
*/
/*!
- Constructs a widget which is a child of \a tqparent, with the name
+ Constructs a widget which is a child of \a parent, with the name
\a name and widget flags set to \a f.
- If \a tqparent is 0, the new widget becomes a top-level window. If
- \a tqparent is another widget, this widget becomes a child window
- inside \a tqparent. The new widget is deleted when its \a tqparent is
+ If \a parent is 0, the new widget becomes a top-level window. If
+ \a parent is another widget, this widget becomes a child window
+ inside \a parent. The new widget is deleted when its \a parent is
deleted.
The \a name is sent to the TQObject constructor.
The widget flags argument, \a f, is normally 0, but it can be set
to customize the window frame of a top-level widget (i.e. \a
- tqparent must be 0). To customize the frame, set the \c
+ parent must be 0). To customize the frame, set the \c
WStyle_Customize flag OR'ed with any of the \l TQt::WidgetFlags.
If you add a child widget to an already visible widget you must
@@ -3526,8 +3526,8 @@ TQSize qt_naturalWidgetSize( TQWidget *w ) {
\endcode
*/
-TQWidget::TQWidget( TQWidget *tqparent, const char *name, WFlags f )
- : TQObject( tqparent, name ), TQPaintDevice( TQInternal::Widget )
+TQWidget::TQWidget( TQWidget *parent, const char *name, WFlags f )
+ : TQObject( parent, name ), TQPaintDevice( TQInternal::Widget )
{
#if defined(TQT_CHECK_STATE) && !defined(TQ_WS_WIN)
if ( tqApp->type() == TQApplication::Tty ) {
@@ -3633,7 +3633,7 @@ TQWidget::~TQWidget()
if ( isTopLevel() && isShown() && winId() )
hide();
- // A tqparent widget must destroy all its tqchildren before destroying itself
+ // A parent widget must destroy all its tqchildren before destroying itself
if ( childObjects ) { // delete tqchildren objects
TQObjectListIt it(*childObjects);
TQObject *obj;
@@ -3686,7 +3686,7 @@ void TQWidget::destroyMapper()
register TQWidget *w;
while ( (w=it.current()) ) { // remove parents widgets
++it;
- if ( !w->parentObj ) // widget is a tqparent
+ if ( !w->parentObj ) // widget is a parent
w->destroy( TRUE, TRUE );
}
delete myMapper;
@@ -4048,14 +4048,14 @@ void TQWidget::styleChange( TQStyle& /* oldStyle */ )
TQWidget::isPopup() Popup\endlink and \link TQWidget::isDesktop()
desktop\endlink widgets are also top-level widgets.
- A top-level widget can have a \link TQWidget::parentWidget() tqparent
- widget\endlink. It will then be grouped with its tqparent and deleted
- when the tqparent is deleted, minimized when the tqparent is minimized
+ A top-level widget can have a \link TQWidget::parentWidget() parent
+ widget\endlink. It will then be grouped with its parent and deleted
+ when the parent is deleted, minimized when the parent is minimized
etc. If supported by the window manager, it will also have a
- common taskbar entry with its tqparent.
+ common taskbar entry with its parent.
TQDialog and TQMainWindow widgets are by default top-level, even if
- a tqparent widget is specified in the constructor. This behavior is
+ a parent widget is specified in the constructor. This behavior is
specified by the \c WType_TopLevel widget flag.
\sa tqtopLevelWidget(), isDialog(), isModal(), isPopup(), isDesktop(), parentWidget()
@@ -4066,7 +4066,7 @@ void TQWidget::styleChange( TQStyle& /* oldStyle */ )
\brief whether the widget is a dialog widget
A dialog widget is a secondary top-level widget, i.e. a top-level
- widget with a tqparent.
+ widget with a parent.
\sa isTopLevel(), TQDialog
*/
@@ -4307,7 +4307,7 @@ void TQWidget::showNormal()
Returns TRUE if this widget would become enabled if \a ancestor is
enabled; otherwise returns FALSE.
- This is the case if neither the widget itself nor every tqparent up
+ This is the case if neither the widget itself nor every parent up
to but excluding \a ancestor has been explicitly disabled.
isEnabledTo(0) is equivalent to isEnabled().
@@ -4506,7 +4506,7 @@ void TQWidget::windowActivationChange( bool )
/*!
\property TQWidget::frameGeometry
- \brief tqgeometry of the widget relative to its tqparent including any
+ \brief tqgeometry of the widget relative to its parent including any
window frame
See the \link tqgeometry.html Window Geometry documentation\endlink
@@ -4530,7 +4530,7 @@ TQRect TQWidget::frameGeometry() const
}
/*! \property TQWidget::x
- \brief the x coordinate of the widget relative to its tqparent including
+ \brief the x coordinate of the widget relative to its parent including
any window frame
See the \link tqgeometry.html Window Geometry documentation\endlink
@@ -4551,7 +4551,7 @@ int TQWidget::x() const
/*!
\property TQWidget::y
- \brief the y coordinate of the widget relative to its tqparent and
+ \brief the y coordinate of the widget relative to its parent and
including any window frame
See the \link tqgeometry.html Window Geometry documentation\endlink
@@ -4572,7 +4572,7 @@ int TQWidget::y() const
/*!
\property TQWidget::pos
- \brief the position of the widget within its tqparent widget
+ \brief the position of the widget within its parent widget
If the widget is a top-level widget, the position is that of the
widget on the desktop, including its frame.
@@ -4607,7 +4607,7 @@ TQPoint TQWidget::pos() const
/*!
\property TQWidget::tqgeometry
- \brief the tqgeometry of the widget relative to its tqparent and
+ \brief the tqgeometry of the widget relative to its parent and
excluding the window frame
When changing the tqgeometry, the widget, if visible, receives a
@@ -4937,18 +4937,18 @@ void TQWidget::setFixedHeight( int h )
/*!
Translates the widget coordinate \a pos to the coordinate system
- of \a tqparent. The \a tqparent must not be 0 and must be a tqparent
+ of \a parent. The \a parent must not be 0 and must be a parent
of the calling widget.
\sa mapFrom() mapToParent() mapToGlobal() hasMouse()
*/
-TQPoint TQWidget::mapTo( TQWidget * tqparent, const TQPoint & pos ) const
+TQPoint TQWidget::mapTo( TQWidget * parent, const TQPoint & pos ) const
{
TQPoint p = pos;
- if ( tqparent ) {
+ if ( parent ) {
const TQWidget * w = this;
- while ( w != tqparent ) {
+ while ( w != parent ) {
p = w->mapToParent( p );
w = w->parentWidget();
}
@@ -4959,18 +4959,18 @@ TQPoint TQWidget::mapTo( TQWidget * tqparent, const TQPoint & pos ) const
/*!
Translates the widget coordinate \a pos from the coordinate system
- of \a tqparent to this widget's coordinate system. The \a tqparent
- must not be 0 and must be a tqparent of the calling widget.
+ of \a parent to this widget's coordinate system. The \a parent
+ must not be 0 and must be a parent of the calling widget.
\sa mapTo() mapFromParent() mapFromGlobal() hasMouse()
*/
-TQPoint TQWidget::mapFrom( TQWidget * tqparent, const TQPoint & pos ) const
+TQPoint TQWidget::mapFrom( TQWidget * parent, const TQPoint & pos ) const
{
TQPoint p( pos );
- if ( tqparent ) {
+ if ( parent ) {
const TQWidget * w = this;
- while ( w != tqparent ) {
+ while ( w != parent ) {
p = w->mapFromParent( p );
w = w->parentWidget();
}
@@ -4981,9 +4981,9 @@ TQPoint TQWidget::mapFrom( TQWidget * tqparent, const TQPoint & pos ) const
/*!
Translates the widget coordinate \a pos to a coordinate in the
- tqparent widget.
+ parent widget.
- Same as mapToGlobal() if the widget has no tqparent.
+ Same as mapToGlobal() if the widget has no parent.
\sa mapFromParent() mapTo() mapToGlobal() hasMouse()
*/
@@ -4994,10 +4994,10 @@ TQPoint TQWidget::mapToParent( const TQPoint &pos ) const
}
/*!
- Translates the tqparent widget coordinate \a pos to widget
+ Translates the parent widget coordinate \a pos to widget
coordinates.
- Same as mapFromGlobal() if the widget has no tqparent.
+ Same as mapFromGlobal() if the widget has no parent.
\sa mapToParent() mapFrom() mapFromGlobal() hasMouse()
*/
@@ -5535,7 +5535,7 @@ const TQColorGroup &TQWidget::tqcolorGroup() const
As long as no special palette has been set, or after unsetPalette()
has been called, this is either a special palette for the widget
- class, the tqparent's palette or (if this widget is a top level
+ class, the parent's palette or (if this widget is a top level
widget), the default application palette.
Instead of defining an entirely new palette, you can also use the
@@ -5614,7 +5614,7 @@ void TQWidget::paletteChange( const TQPalette & )
As long as no special font has been set, or after unsetFont() is
called, this is either a special font for the widget class, the
- tqparent's font or (if this widget is a top level widget), the
+ parent's font or (if this widget is a top level widget), the
default application font.
This code fragment sets a 12 point helvetica bold font:
@@ -5631,7 +5631,7 @@ void TQWidget::paletteChange( const TQPalette & )
void TQWidget::setFont( const TQFont &font )
{
own_font = TRUE;
- if ( fnt == font && fnt.d->tqmask == font.d->tqmask )
+ if ( fnt == font && fnt.d->mask == font.d->mask )
return;
TQFont old = fnt;
fnt = font.resolve( qt_naturalWidgetFont( this ) );
@@ -5724,7 +5724,7 @@ void TQWidget::fontChange( const TQFont & )
\endcode
If no cursor has been set, or after a call to unsetCursor(), the
- tqparent's cursor is used. The function unsetCursor() has no effect
+ parent's cursor is used. The function unsetCursor() has no effect
on top-level widgets.
\sa TQApplication::setOverrideCursor()
@@ -6066,7 +6066,7 @@ void TQWidget::clearFocus()
TQWidget::focusNextPrevChild() only when it reaches the last or
first link on the "page".
- Child widgets call focusNextPrevChild() on their tqparent widgets,
+ Child widgets call focusNextPrevChild() on their parent widgets,
but only the top-level widget decides where to redirect focus. By
overriding this method for an object, you thus gain control of
focus traversal for all child widgets.
@@ -6257,11 +6257,11 @@ bool TQWidget::isActiveWindow() const
}
#endif
#if defined(TQ_WS_WIN32)
- HWND tqparent = tlw->winId();
- HWND toptqparent = GetActiveWindow();
- while ( tqparent ) {
- tqparent = ::GetParent( tqparent );
- if ( tqparent && tqparent == toptqparent )
+ HWND parent = tlw->winId();
+ HWND topparent = GetActiveWindow();
+ while ( parent ) {
+ parent = ::GetParent( parent );
+ if ( parent && parent == topparent )
return TRUE;
}
#endif
@@ -6344,7 +6344,7 @@ void TQWidget::setTabOrder( TQWidget* first, TQWidget *second )
/*!\internal
Moves the relevant subwidgets of this widget from the \a oldtlw's
- tab chain to that of the new tqparent, if there's anything to move and
+ tab chain to that of the new parent, if there's anything to move and
we're really moving
This function is called from TQWidget::reparent() *after* the widget
@@ -6394,7 +6394,7 @@ void TQWidget::reparentFocusWidgets( TQWidget * oldtlw )
}
/*!
- \fn void TQWidget::recreate( TQWidget *tqparent, WFlags f, const TQPoint & p, bool showIt )
+ \fn void TQWidget::recreate( TQWidget *parent, WFlags f, const TQPoint & p, bool showIt )
\obsolete
@@ -6423,7 +6423,7 @@ TQSize TQWidget::frameSize() const
\internal
Recursive function that updates \a widget and all its tqchildren,
- if they have some tqparent background origin.
+ if they have some parent background origin.
*/
static void qt_update_bg_recursive( TQWidget *widget )
{
@@ -6607,7 +6607,7 @@ void TQWidget::show()
if ( !isTopLevel() && !parentWidget()->isVisible() ) {
// we should become visible, but one of our ancestors is
// explicitly hidden. Since we cleared the ForceHide flag, our
- // immediate tqparent will call show() on us again during its
+ // immediate parent will call show() on us again during its
// own processing of show().
if ( wasHidden ) {
TQEvent showToParentEvent( TQEvent::ShowToParent );
@@ -6741,14 +6741,14 @@ void TQWidget::hide()
tqApp->closePopup( this );
// Move test modal here. Otherwise, a modal dialog could get
- // destroyed and we lose all access to its tqparent because we haven't
+ // destroyed and we lose all access to its parent because we haven't
// left modality. (Eg. modal Progress Dialog)
if ( testWFlags(WShowModal) )
qt_leave_modal( this );
#if defined(TQ_WS_WIN)
if ( isTopLevel() && !isPopup() && parentWidget() && isActiveWindow() )
- parentWidget()->setActiveWindow(); // Activate tqparent
+ parentWidget()->setActiveWindow(); // Activate parent
#endif
hideWindow();
@@ -6772,7 +6772,7 @@ void TQWidget::hide()
TQApplication::sendEvent( this, &hideToParentEvent );
}
- // post tqlayout hint for non toplevels. The tqparent widget check is
+ // post tqlayout hint for non toplevels. The parent widget check is
// necessary since the function is called in the destructor
if ( !isTopLevel() && parentWidget() )
TQApplication::postEvent( parentWidget(),
@@ -6873,7 +6873,7 @@ void TQWidget::polish()
if ( isTopLevel() ) {
const TQPixmap *pm = icon();
if ( !pm || pm->isNull() ) {
- TQWidget *mw = (TQWidget *)tqparent();
+ TQWidget *mw = (TQWidget *)parent();
pm = mw ? mw->icon() : 0;
if ( pm && !pm->isNull() )
setIcon( *pm );
@@ -7018,7 +7018,7 @@ bool TQWidget::close( bool alsoDelete )
\property TQWidget::visible
\brief whether the widget is visible
- Calling show() sets the widget to visible status if all its tqparent
+ Calling show() sets the widget to visible status if all its parent
widgets up to the top-level widget are visible. If an ancestor is
not visible, the widget won't become visible until all its
ancestors are shown.
@@ -7051,7 +7051,7 @@ bool TQWidget::close( bool alsoDelete )
Returns TRUE if this widget would become visible if \a ancestor is
shown; otherwise returns FALSE.
- The TRUE case occurs if neither the widget itself nor any tqparent
+ The TRUE case occurs if neither the widget itself nor any parent
up to but excluding \a ancestor has been explicitly hidden.
This function will still return TRUE if the widget is obscured by
@@ -7256,9 +7256,9 @@ TQSize TQWidget::tqminimumSizeHint() const
/*!
\fn TQWidget *TQWidget::parentWidget( bool sameWindow ) const
- Returns the tqparent of this widget, or 0 if it does not have any
- tqparent widget. If \a sameWindow is TRUE and the widget is top
- level returns 0; otherwise returns the widget's tqparent.
+ Returns the parent of this widget, or 0 if it does not have any
+ parent widget. If \a sameWindow is TRUE and the widget is top
+ level returns 0; otherwise returns the widget's parent.
*/
/*!
@@ -7742,7 +7742,7 @@ void TQWidget::mouseDoubleClickEvent( TQMouseEvent *e )
If you reimplement this handler, it is very important that you
\link TQWheelEvent ignore()\endlink the event if you do not handle
- it, so that the widget's tqparent can interpret it.
+ it, so that the widget's parent can interpret it.
The default implementation ignores the event.
@@ -7762,7 +7762,7 @@ void TQWidget::wheelEvent( TQWheelEvent *e )
If you reimplement this handler, it is very important that you
\link TQTabletEvent ignore()\endlink the event if you do not handle
- it, so that the widget's tqparent can interpret it.
+ it, so that the widget's parent can interpret it.
The default implementation ignores the event.
@@ -7784,10 +7784,10 @@ void TQWidget::tabletEvent( TQTabletEvent *e )
If you reimplement this handler, it is very important that you
explicitly \link TQKeyEvent::ignore() ignore\endlink the event
- if you do not understand it, so that the widget's tqparent can
+ if you do not understand it, so that the widget's parent can
interpret it; otherwise, the event will be implicitly accepted.
Although top-level widgets are able to choose whether to accept
- or ignore unknown events because they have no tqparent widgets that
+ or ignore unknown events because they have no parent widgets that
could otherwise handle them, it is good practice to explicitly
ignore events to make widgets as reusable as possible.
@@ -7818,7 +7818,7 @@ void TQWidget::keyPressEvent( TQKeyEvent *e )
If you reimplement this handler, it is very important that you
\link TQKeyEvent ignore()\endlink the release if you do not
- understand it, so that the widget's tqparent can interpret it.
+ understand it, so that the widget's parent can interpret it.
The default implementation ignores the event.
@@ -8285,11 +8285,11 @@ bool TQWidget::qwsEvent( TQWSEvent * )
/*!
\property TQWidget::autoMask
- \brief whether the auto tqmask feature is enabled for the widget
+ \brief whether the auto mask feature is enabled for the widget
- Transtqparent widgets use a tqmask to define their visible region.
+ Transparent widgets use a mask to define their visible region.
TQWidget has some built-in support to make the task of
- recalculating the tqmask easier. When setting auto tqmask to TRUE,
+ recalculating the mask easier. When setting auto mask to TRUE,
updateMask() will be called whenever the widget is resized or
changes its focus state. Note that you must reimplement
updateMask() (which should include a call to setMask()) or nothing
@@ -8297,7 +8297,7 @@ bool TQWidget::qwsEvent( TQWSEvent * )
Note: when you re-implement resizeEvent(), focusInEvent() or
focusOutEvent() in your custom widgets and still want to ensure
- that the auto tqmask calculation works, you should add:
+ that the auto mask calculation works, you should add:
\code
if ( autoMask() )
@@ -8306,17 +8306,17 @@ bool TQWidget::qwsEvent( TQWSEvent * )
at the end of your event handlers. This is true for all member
functions that change the appearance of the widget in a way that
- requires a recalculation of the tqmask.
+ requires a recalculation of the mask.
While being a technically appealing concept, masks have a big
drawback: when using complex masks that cannot be expressed easily
with relatively simple regions, they can be very slow on some
- window systems. The classic example is a transtqparent label. The
+ window systems. The classic example is a transparent label. The
complex tqshape of its contents makes it necessary to represent its
- tqmask by a bitmap, which consumes both memory and time. If all you
+ mask by a bitmap, which consumes both memory and time. If all you
want is to blend the background of several neighboring widgets
together seamlessly, you will probably want to use
- setBackgroundOrigin() rather than a tqmask.
+ setBackgroundOrigin() rather than a mask.
\sa autoMask() updateMask() setMask() clearMask() setBackgroundOrigin()
*/
@@ -8348,9 +8348,9 @@ void TQWidget::setAutoMask( bool enable )
The pixmap is drawn using the:
\value WidgetOrigin widget's coordinate system.
- \value ParentOrigin tqparent's coordinate system.
+ \value ParentOrigin parent's coordinate system.
\value WindowOrigin top-level window's coordinate system.
- \value AncestorOrigin same origin as the tqparent uses.
+ \value AncestorOrigin same origin as the parent uses.
*/
/*!
@@ -8385,8 +8385,8 @@ void TQWidget::setBackgroundOrigin( BackgroundOrigin origin )
/*!
This function can be reimplemented in a subclass to support
- transtqparent widgets. It should be called whenever a widget changes
- state in a way that means that the tqshape tqmask must be recalculated.
+ transparent widgets. It should be called whenever a widget changes
+ state in a way that means that the tqshape mask must be recalculated.
\sa setAutoMask(), updateMask(), setMask(), clearMask()
*/
@@ -8620,22 +8620,22 @@ void TQWidget::updateGeometry()
/*!
- Reparents the widget. The widget gets a new \a tqparent, new widget
+ Reparents the widget. The widget gets a new \a parent, new widget
flags (\a f, but as usual, use 0) at a new position in its new
- tqparent (\a p).
+ parent (\a p).
If \a showIt is TRUE, show() is called once the widget has been
reparented.
- If the new tqparent widget is in a different top-level widget, the
+ If the new parent widget is in a different top-level widget, the
reparented widget and its tqchildren are appended to the end of the
- \link setFocusPolicy() tab chain \endlink of the new tqparent
+ \link setFocusPolicy() tab chain \endlink of the new parent
widget, in the same internal order as before. If one of the moved
widgets had keyboard focus, reparent() calls clearFocus() for that
widget.
- If the new tqparent widget is in the same top-level widget as the
- old tqparent, reparent doesn't change the tab order or keyboard
+ If the new parent widget is in the same top-level widget as the
+ old parent, reparent doesn't change the tab order or keyboard
focus.
\warning It is extremely unlikely that you will ever need this
@@ -8646,11 +8646,11 @@ void TQWidget::updateGeometry()
\sa getWFlags()
*/
-void TQWidget::reparent( TQWidget *tqparent, WFlags f, const TQPoint &p,
+void TQWidget::reparent( TQWidget *parent, WFlags f, const TQPoint &p,
bool showIt )
{
- reparentSys( tqparent, f, p, showIt );
- TQEvent e( TQEvent::Retqparent );
+ reparentSys( parent, f, p, showIt );
+ TQEvent e( TQEvent::Reparent );
TQApplication::sendEvent( this, &e );
if (!own_font)
unsetFont();
@@ -8668,20 +8668,20 @@ void TQWidget::reparent( TQWidget *tqparent, WFlags f, const TQPoint &p,
A convenience version of reparent that does not take widget flags
as argument.
- Calls reparent(\a tqparent, getWFlags() \& ~\l WType_Mask, \a p, \a
+ Calls reparent(\a parent, getWFlags() \& ~\l WType_Mask, \a p, \a
showIt).
*/
-void TQWidget::reparent( TQWidget *tqparent, const TQPoint & p,
+void TQWidget::reparent( TQWidget *parent, const TQPoint & p,
bool showIt )
{
- reparent( tqparent, getWFlags() & ~WType_Mask, p, showIt );
+ reparent( parent, getWFlags() & ~WType_Mask, p, showIt );
}
/*!
\property TQWidget::ownCursor
\brief whether the widget uses its own cursor
- If FALSE, the widget uses its tqparent widget's cursor.
+ If FALSE, the widget uses its parent widget's cursor.
\sa cursor
*/
@@ -8690,7 +8690,7 @@ void TQWidget::reparent( TQWidget *tqparent, const TQPoint & p,
\property TQWidget::ownFont
\brief whether the widget uses its own font
- If FALSE, the widget uses its tqparent widget's font.
+ If FALSE, the widget uses its parent widget's font.
\sa font
*/
@@ -8699,7 +8699,7 @@ void TQWidget::reparent( TQWidget *tqparent, const TQPoint & p,
\property TQWidget::ownPalette
\brief whether the widget uses its own palette
- If FALSE, the widget uses its tqparent widget's palette.
+ If FALSE, the widget uses its parent widget's palette.
\sa palette
*/
@@ -8737,16 +8737,16 @@ void TQDesktopWidget::insertChild( TQObject *obj )
\brief The level of opacity for the window.
The valid range of opacity is from 1.0 (completely opaque) to
- 0.0 (completely transtqparent).
+ 0.0 (completely transparent).
By default the value of this property is 1.0.
This feature is only present on Mac OS X and Windows 2000 and up.
- \warning Changing this property from opaque to transtqparent might issue a
+ \warning Changing this property from opaque to transparent might issue a
paint event that needs to be processed before the window is displayed
correctly. This affects mainly the use of TQPixmap::grabWindow(). Also note
- that semi-transtqparent windows update and resize significantely slower than
+ that semi-transparent windows update and resize significantely slower than
opaque windows.
*/