summaryrefslogtreecommitdiffstats
path: root/doc/man/man3/tqwidget.3qt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/man/man3/tqwidget.3qt')
-rw-r--r--doc/man/man3/tqwidget.3qt188
1 files changed, 94 insertions, 94 deletions
diff --git a/doc/man/man3/tqwidget.3qt b/doc/man/man3/tqwidget.3qt
index 418f0de23..cb93bc969 100644
--- a/doc/man/man3/tqwidget.3qt
+++ b/doc/man/man3/tqwidget.3qt
@@ -414,7 +414,7 @@ Inherited by TQButton, TQFrame, TQDialog, TQComboBox, TQDataBrowser, TQDataView,
.BI "virtual void \fBsetSizePolicy\fR ( TQSizePolicy )"
.br
.ti -1c
-.BI "void \fBsetSizePolicy\fR ( TQSizePolicy::SizeType hor, TQSizePolicy::SizeType ver, bool hfw = FALSE )"
+.BI "void \fBsetSizePolicy\fR ( TQSizePolicy::SizeType hor, TQSizePolicy::SizeType ver, bool hfw = false )"
.br
.ti -1c
.BI "virtual int \fBheightForWidth\fR ( int w ) const"
@@ -429,13 +429,13 @@ Inherited by TQButton, TQFrame, TQDialog, TQComboBox, TQDataBrowser, TQDataView,
.BI "void \fBupdateGeometry\fR ()"
.br
.ti -1c
-.BI "virtual void \fBreparent\fR ( TQWidget * parent, WFlags f, const TQPoint & p, bool showIt = FALSE )"
+.BI "virtual void \fBreparent\fR ( TQWidget * parent, WFlags f, const TQPoint & p, bool showIt = false )"
.br
.ti -1c
-.BI "void \fBreparent\fR ( TQWidget * parent, const TQPoint & p, bool showIt = FALSE )"
+.BI "void \fBreparent\fR ( TQWidget * parent, const TQPoint & p, bool showIt = false )"
.br
.ti -1c
-.BI "void recreate ( TQWidget * parent, WFlags f, const TQPoint & p, bool showIt = FALSE ) \fI(obsolete)\fR"
+.BI "void recreate ( TQWidget * parent, WFlags f, const TQPoint & p, bool showIt = false ) \fI(obsolete)\fR"
.br
.ti -1c
.BI "void \fBerase\fR ()"
@@ -492,16 +492,16 @@ Inherited by TQButton, TQFrame, TQDialog, TQComboBox, TQDataBrowser, TQDataView,
.BI "virtual bool \fBcustomWhatsThis\fR () const"
.br
.ti -1c
-.BI "TQWidget * \fBparentWidget\fR ( bool sameWindow = FALSE ) const"
+.BI "TQWidget * \fBparentWidget\fR ( bool sameWindow = false ) const"
.br
.ti -1c
.BI "WFlags \fBtestWFlags\fR ( WFlags f ) const"
.br
.ti -1c
-.BI "TQWidget * \fBchildAt\fR ( int x, int y, bool includeThis = FALSE ) const"
+.BI "TQWidget * \fBchildAt\fR ( int x, int y, bool includeThis = false ) const"
.br
.ti -1c
-.BI "TQWidget * \fBchildAt\fR ( const TQPoint & p, bool includeThis = FALSE ) const"
+.BI "TQWidget * \fBchildAt\fR ( const TQPoint & p, bool includeThis = false ) const"
.br
.ti -1c
.BI "void \fBsetWindowOpacity\fR ( double level )"
@@ -561,13 +561,13 @@ Inherited by TQButton, TQFrame, TQDialog, TQComboBox, TQDataBrowser, TQDataView,
.BI "void \fBrepaint\fR ( bool erase )"
.br
.ti -1c
-.BI "void \fBrepaint\fR ( int x, int y, int w, int h, bool erase = TRUE )"
+.BI "void \fBrepaint\fR ( int x, int y, int w, int h, bool erase = true )"
.br
.ti -1c
-.BI "void \fBrepaint\fR ( const TQRect & r, bool erase = TRUE )"
+.BI "void \fBrepaint\fR ( const TQRect & r, bool erase = true )"
.br
.ti -1c
-.BI "void \fBrepaint\fR ( const TQRegion & reg, bool erase = TRUE )"
+.BI "void \fBrepaint\fR ( const TQRegion & reg, bool erase = true )"
.br
.ti -1c
.BI "virtual void \fBshow\fR ()"
@@ -966,10 +966,10 @@ Inherited by TQButton, TQFrame, TQDialog, TQComboBox, TQDataBrowser, TQDataView,
.BI "void \fBresetInputContext\fR ()"
.br
.ti -1c
-.BI "virtual void \fBcreate\fR ( WId window = 0, bool initializeWindow = TRUE, bool destroyOldWindow = TRUE )"
+.BI "virtual void \fBcreate\fR ( WId window = 0, bool initializeWindow = true, bool destroyOldWindow = true )"
.br
.ti -1c
-.BI "virtual void \fBdestroy\fR ( bool destroyWindow = TRUE, bool destroySubWindows = TRUE )"
+.BI "virtual void \fBdestroy\fR ( bool destroyWindow = true, bool destroySubWindows = true )"
.br
.ti -1c
.BI "WFlags \fBgetWFlags\fR () const"
@@ -990,7 +990,7 @@ Inherited by TQButton, TQFrame, TQDialog, TQComboBox, TQDataBrowser, TQDataView,
.BI "virtual void \fBsetKeyCompression\fR ( bool compress )"
.br
.ti -1c
-.BI "virtual void \fBsetMicroFocusHint\fR ( int x, int y, int width, int height, bool text = TRUE, TQFont * f = 0 )"
+.BI "virtual void \fBsetMicroFocusHint\fR ( int x, int y, int width, int height, bool text = true, TQFont * f = 0 )"
.br
.in -1c
.SH DESCRIPTION
@@ -1066,7 +1066,7 @@ focusOutEvent() - called when the widget loses keyboard focus.
Some widgets will also need to reimplement some of the less common event handlers:
.IP
.TP
-mouseMoveEvent() - called whenever the mouse moves while a button is held down. This is useful for, for example, dragging. If you call setMouseTracking(TRUE), you get mouse move events even when no buttons are held down. (Note that applications which make use of mouse tracking are often not very useful on low-bandwidth X connections.) (See also the drag and drop information.)
+mouseMoveEvent() - called whenever the mouse moves while a button is held down. This is useful for, for example, dragging. If you call setMouseTracking(true), you get mouse move events even when no buttons are held down. (Note that applications which make use of mouse tracking are often not very useful on low-bandwidth X connections.) (See also the drag and drop information.)
.IP
.TP
keyReleaseEvent() - called whenever a key is released, and also while it is held down if the key is auto-repeating. In that case the widget receives a key release event and immediately a key press event for every repeat. Note that the Tab and Shift+Tab keys are only passed to the widget if they are not used by the focus-change mechanisms. To force those keys to be processed by your widget, you must reimplement TQWidget::event().
@@ -1156,7 +1156,7 @@ Destroys the widget.
.PP
All this widget's children are deleted first. The application exits if this widget is the main widget.
.SH "bool TQWidget::acceptDrops () const"
-Returns TRUE if drop events are enabled for this widget; otherwise returns FALSE. See the "acceptDrops" property for details.
+Returns true if drop events are enabled for this widget; otherwise returns false. See the "acceptDrops" property for details.
.SH "void TQWidget::adjustSize ()\fC [virtual slot]\fR"
Adjusts the size of the widget to fit the contents.
.PP
@@ -1168,7 +1168,7 @@ Example: xform/xform.cpp.
.PP
Reimplemented in TQMessageBox.
.SH "bool TQWidget::autoMask () const"
-Returns TRUE if the auto mask feature is enabled for the widget; otherwise returns FALSE. See the "autoMask" property for details.
+Returns true if the auto mask feature is enabled for the widget; otherwise returns false. See the "autoMask" property for details.
.SH "const TQBrush & TQWidget::backgroundBrush () const"
Returns the widget's background brush. See the "backgroundBrush" property for details.
.SH "const TQColor & TQWidget::backgroundColor () const"
@@ -1186,16 +1186,16 @@ Examples:
Returns the base size of the widget. See the "baseSize" property for details.
.SH "TQString TQWidget::caption () const"
Returns the window caption (title). See the "caption" property for details.
-.SH "TQWidget * TQWidget::childAt ( int x, int y, bool includeThis = FALSE ) const"
+.SH "TQWidget * TQWidget::childAt ( int x, int y, bool includeThis = false ) const"
Returns the visible child widget at pixel position \fI(x, y)\fR in the widget's own coordinate system.
.PP
-If \fIincludeThis\fR is TRUE, and there is no child visible at \fI(x, y)\fR, the widget itself is returned.
-.SH "TQWidget * TQWidget::childAt ( const TQPoint & p, bool includeThis = FALSE ) const"
+If \fIincludeThis\fR is true, and there is no child visible at \fI(x, y)\fR, the widget itself is returned.
+.SH "TQWidget * TQWidget::childAt ( const TQPoint & p, bool includeThis = false ) const"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Returns the visible child widget at point \fIp\fR in the widget's own coordinate system.
.PP
-If \fIincludeThis\fR is TRUE, and there is no child visible at \fIp\fR, the widget itself is returned.
+If \fIincludeThis\fR is true, and there is no child visible at \fIp\fR, the widget itself is returned.
.SH "TQRect TQWidget::childrenRect () const"
Returns the bounding rectangle of the widget's children. See the "childrenRect" property for details.
.SH "TQRegion TQWidget::childrenRegion () const"
@@ -1225,7 +1225,7 @@ For visible widgets, this is an approximation of the area not covered by other w
.PP
The repaint() function calls this function if necessary, so in general you do not need to call it.
.SH "bool TQWidget::close ()\fC [slot]\fR"
-Closes this widget. Returns TRUE if the widget was closed; otherwise returns FALSE.
+Closes this widget. Returns true if the widget was closed; otherwise returns false.
.PP
First it sends the widget a TQCloseEvent. The widget is hidden if it accepts the close event. The default implementation of TQWidget::closeEvent() accepts the close event.
.PP
@@ -1236,9 +1236,9 @@ Examples:
.SH "bool TQWidget::close ( bool alsoDelete )\fC [virtual]\fR"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
-Closes this widget. Returns TRUE if the widget was closed; otherwise returns FALSE.
+Closes this widget. Returns true if the widget was closed; otherwise returns false.
.PP
-If \fIalsoDelete\fR is TRUE or the widget has the WDestructiveClose widget flag, the widget is also deleted. The widget can prevent itself from being closed by rejecting the TQCloseEvent it gets. A close events is delivered to the widget no matter if the widget is visible or not.
+If \fIalsoDelete\fR is true or the widget has the WDestructiveClose widget flag, the widget is also deleted. The widget can prevent itself from being closed by rejecting the TQCloseEvent it gets. A close events is delivered to the widget no matter if the widget is visible or not.
.PP
The TQApplication::lastWindowClosed() signal is emitted when the last visible top level widget is closed.
.PP
@@ -1272,20 +1272,20 @@ The default implementation calls e->ignore(), which rejects the context event. S
See also event() and TQContextMenuEvent.
.PP
Example: menu/menu.cpp.
-.SH "void TQWidget::create ( WId window = 0, bool initializeWindow = TRUE, bool destroyOldWindow = TRUE )\fC [virtual protected]\fR"
+.SH "void TQWidget::create ( WId window = 0, bool initializeWindow = true, bool destroyOldWindow = true )\fC [virtual protected]\fR"
Creates a new widget window if \fIwindow\fR is 0, otherwise sets the widget's window to \fIwindow\fR.
.PP
-Initializes the window (sets the geometry etc.) if \fIinitializeWindow\fR is TRUE. If \fIinitializeWindow\fR is FALSE, no initialization is performed. This parameter only makes sense if \fIwindow\fR is a valid window.
+Initializes the window (sets the geometry etc.) if \fIinitializeWindow\fR is true. If \fIinitializeWindow\fR is false, no initialization is performed. This parameter only makes sense if \fIwindow\fR is a valid window.
.PP
-Destroys the old window if \fIdestroyOldWindow\fR is TRUE. If \fIdestroyOldWindow\fR is FALSE, you are responsible for destroying the window yourself (using platform native code).
+Destroys the old window if \fIdestroyOldWindow\fR is true. If \fIdestroyOldWindow\fR is false, you are responsible for destroying the window yourself (using platform native code).
.PP
-The TQWidget constructor calls create(0,TRUE,TRUE) to create a window for this widget.
+The TQWidget constructor calls create(0,true,true) to create a window for this widget.
.SH "const TQCursor & TQWidget::cursor () const"
Returns the cursor shape for this widget. See the "cursor" property for details.
.SH "bool TQWidget::customWhatsThis () const\fC [virtual]\fR"
-Returns TRUE if the widget wants to handle What's This help manually; otherwise returns FALSE. See the "customWhatsThis" property for details.
-.SH "void TQWidget::destroy ( bool destroyWindow = TRUE, bool destroySubWindows = TRUE )\fC [virtual protected]\fR"
-Frees up window system resources. Destroys the widget window if \fIdestroyWindow\fR is TRUE.
+Returns true if the widget wants to handle What's This help manually; otherwise returns false. See the "customWhatsThis" property for details.
+.SH "void TQWidget::destroy ( bool destroyWindow = true, bool destroySubWindows = true )\fC [virtual protected]\fR"
+Frees up window system resources. Destroys the widget window if \fIdestroyWindow\fR is true.
.PP
destroy() calls itself recursively for all the child widgets, passing \fIdestroySubWindows\fR for the \fIdestroyWindow\fR parameter. To have more control over destruction of subwidgets, destroy subwidgets selectively first.
.PP
@@ -1381,7 +1381,7 @@ The main event handler first passes an event through all event filters that have
.PP
Key press and release events are treated differently from other events. event() checks for Tab and Shift+Tab and tries to move the focus appropriately. If there is no widget to move the focus to (or the key press is not Tab or Shift+Tab), event() calls keyPressEvent().
.PP
-This function returns TRUE if it is able to pass the event over to someone (i.e. someone wanted the event); otherwise returns FALSE.
+This function returns true if it is able to pass the event over to someone (i.e. someone wanted the event); otherwise returns false.
.PP
See also closeEvent(), focusInEvent(), focusOutEvent(), enterEvent(), keyPressEvent(), keyReleaseEvent(), leaveEvent(), mouseDoubleClickEvent(), mouseMoveEvent(), mousePressEvent(), mouseReleaseEvent(), moveEvent(), paintEvent(), resizeEvent(), TQObject::event(), and TQObject::timerEvent().
.PP
@@ -1405,9 +1405,9 @@ The default implementation updates the widget (except for toplevel widgets that
.PP
See also focusOutEvent(), focusPolicy, keyPressEvent(), keyReleaseEvent(), event(), and TQFocusEvent.
.SH "bool TQWidget::focusNextPrevChild ( bool next )\fC [virtual protected]\fR"
-Finds a new widget to give the keyboard focus to, as appropriate for Tab and Shift+Tab, and returns TRUE if is can find a new widget and FALSE if it can't,
+Finds a new widget to give the keyboard focus to, as appropriate for Tab and Shift+Tab, and returns true if is can find a new widget and false if it can't,
.PP
-If \fInext\fR is TRUE, this function searches "forwards", if \fInext\fR is FALSE, it searches "backwards".
+If \fInext\fR is true, this function searches "forwards", if \fInext\fR is false, it searches "backwards".
.PP
Sometimes, you will want to reimplement this function. For example, a web browser might reimplement it to move its "current active link" forwards or backwards, and call TQWidget::focusNextPrevChild() only when it reaches the last or first link on the "page".
.PP
@@ -1488,7 +1488,7 @@ This widget receives all mouse events until releaseMouse() is called; other widg
.PP
It is almost never necessary to grab the mouse when using Qt, as TQt grabs and releases it sensibly. In particular, TQt grabs the mouse when a mouse button is pressed and keeps it until the last button is released.
.PP
-Note that only visible widgets can grab mouse input. If isVisible() returns FALSE for a widget, that widget cannot call grabMouse().
+Note that only visible widgets can grab mouse input. If isVisible() returns false for a widget, that widget cannot call grabMouse().
.PP
See also releaseMouse(), grabKeyboard(), releaseKeyboard(), grabKeyboard(), and focusWidget().
.SH "void TQWidget::grabMouse ( const TQCursor & cursor )"
@@ -1502,11 +1502,11 @@ The cursor will assume shape \fIcursor\fR (for as long as the mouse focus is gra
.PP
See also releaseMouse(), grabKeyboard(), releaseKeyboard(), and cursor.
.SH "bool TQWidget::hasFocus () const"
-Returns TRUE if this widget (or its focus proxy) has the keyboard input focus; otherwise returns FALSE. See the "focus" property for details.
+Returns true if this widget (or its focus proxy) has the keyboard input focus; otherwise returns false. See the "focus" property for details.
.SH "bool TQWidget::hasMouse () const"
-Returns TRUE if the widget is under the mouse cursor; otherwise returns FALSE. See the "underMouse" property for details.
+Returns true if the widget is under the mouse cursor; otherwise returns false. See the "underMouse" property for details.
.SH "bool TQWidget::hasMouseTracking () const"
-Returns TRUE if mouse tracking is enabled for the widget; otherwise returns FALSE. See the "mouseTracking" property for details.
+Returns true if mouse tracking is enabled for the widget; otherwise returns false. See the "mouseTracking" property for details.
.SH "int TQWidget::height () const"
Returns the height of the widget excluding any window frame. See the "height" property for details.
.SH "int TQWidget::heightForWidth ( int w ) const\fC [virtual]\fR"
@@ -1559,15 +1559,15 @@ The default implementation calls e->ignore(), which rejects the Input Method eve
.PP
See also event() and TQIMEvent.
.SH "bool TQWidget::isActiveWindow () const"
-Returns TRUE if this widget is the active window; otherwise returns FALSE. See the "isActiveWindow" property for details.
+Returns true if this widget is the active window; otherwise returns false. See the "isActiveWindow" property for details.
.SH "bool TQWidget::isDesktop () const"
-Returns TRUE if the widget is a desktop widget, i.e. represents the desktop; otherwise returns FALSE. See the "isDesktop" property for details.
+Returns true if the widget is a desktop widget, i.e. represents the desktop; otherwise returns false. See the "isDesktop" property for details.
.SH "bool TQWidget::isDialog () const"
-Returns TRUE if the widget is a dialog widget; otherwise returns FALSE. See the "isDialog" property for details.
+Returns true if the widget is a dialog widget; otherwise returns false. See the "isDialog" property for details.
.SH "bool TQWidget::isEnabled () const"
-Returns TRUE if the widget is enabled; otherwise returns FALSE. See the "enabled" property for details.
+Returns true if the widget is enabled; otherwise returns false. See the "enabled" property for details.
.SH "bool TQWidget::isEnabledTo ( TQWidget * ancestor ) const"
-Returns TRUE if this widget would become enabled if \fIancestor\fR is enabled; otherwise returns FALSE.
+Returns true if this widget would become enabled if \fIancestor\fR is enabled; otherwise returns false.
.PP
This is the case if neither the widget itself nor every parent up to but excluding \fIancestor\fR has been explicitly disabled.
.PP
@@ -1579,35 +1579,35 @@ See also enabled and enabled.
.PP
This function is deprecated. It is equivalent to isEnabled()
.SH "bool TQWidget::isFocusEnabled () const"
-Returns TRUE if the widget accepts keyboard focus; otherwise returns FALSE. See the "focusEnabled" property for details.
+Returns true if the widget accepts keyboard focus; otherwise returns false. See the "focusEnabled" property for details.
.SH "bool TQWidget::isFullScreen () const"
-Returns TRUE if the widget is full screen; otherwise returns FALSE. See the "fullScreen" property for details.
+Returns true if the widget is full screen; otherwise returns false. See the "fullScreen" property for details.
.SH "bool TQWidget::isHidden () const"
-Returns TRUE if the widget is explicitly hidden; otherwise returns FALSE. See the "hidden" property for details.
+Returns true if the widget is explicitly hidden; otherwise returns false. See the "hidden" property for details.
.SH "bool TQWidget::isInputMethodEnabled () const"
Returns enables or disables the use of input methods for this widget. See the "inputMethodEnabled" property for details.
.SH "bool TQWidget::isMaximized () const"
-Returns TRUE if this widget is maximized; otherwise returns FALSE. See the "maximized" property for details.
+Returns true if this widget is maximized; otherwise returns false. See the "maximized" property for details.
.SH "bool TQWidget::isMinimized () const"
-Returns TRUE if this widget is minimized (iconified); otherwise returns FALSE. See the "minimized" property for details.
+Returns true if this widget is minimized (iconified); otherwise returns false. See the "minimized" property for details.
.SH "bool TQWidget::isModal () const"
-Returns TRUE if the widget is a modal widget; otherwise returns FALSE. See the "isModal" property for details.
+Returns true if the widget is a modal widget; otherwise returns false. See the "isModal" property for details.
.SH "bool TQWidget::isPopup () const"
-Returns TRUE if the widget is a popup widget; otherwise returns FALSE. See the "isPopup" property for details.
+Returns true if the widget is a popup widget; otherwise returns false. See the "isPopup" property for details.
.SH "bool TQWidget::isShown () const"
-Returns TRUE if the widget is shown; otherwise returns FALSE. See the "shown" property for details.
+Returns true if the widget is shown; otherwise returns false. See the "shown" property for details.
.SH "bool TQWidget::isTopLevel () const"
-Returns TRUE if the widget is a top-level widget; otherwise returns FALSE. See the "isTopLevel" property for details.
+Returns true if the widget is a top-level widget; otherwise returns false. See the "isTopLevel" property for details.
.SH "bool TQWidget::isUpdatesEnabled () const"
-Returns TRUE if updates are enabled; otherwise returns FALSE. See the "updatesEnabled" property for details.
+Returns true if updates are enabled; otherwise returns false. See the "updatesEnabled" property for details.
.SH "bool TQWidget::isVisible () const"
-Returns TRUE if the widget is visible; otherwise returns FALSE. See the "visible" property for details.
+Returns true if the widget is visible; otherwise returns false. See the "visible" property for details.
.SH "bool TQWidget::isVisibleTo ( TQWidget * ancestor ) const"
-Returns TRUE if this widget would become visible if \fIancestor\fR is shown; otherwise returns FALSE.
+Returns true if this widget would become visible if \fIancestor\fR is shown; otherwise returns false.
.PP
-The TRUE case occurs if neither the widget itself nor any parent up to but excluding \fIancestor\fR has been explicitly hidden.
+The true case occurs if neither the widget itself nor any parent up to but excluding \fIancestor\fR has been explicitly hidden.
.PP
-This function will still return TRUE if the widget is obscured by other windows on the screen, but could be physically visible if it or they were to be moved.
+This function will still return true if the widget is obscured by other windows on the screen, but could be physically visible if it or they were to be moved.
.PP
isVisibleTo(0) is identical to isVisible().
.PP
@@ -1670,7 +1670,7 @@ See also raise() and stackUnder().
.SH "bool TQWidget::macEvent ( MSG * )\fC [virtual protected]\fR"
This special event handler can be reimplemented in a subclass to receive native Macintosh events.
.PP
-In your reimplementation of this function, if you want to stop the event being handled by Qt, return TRUE. If you return FALSE, this native event is passed back to Qt, which translates the event into a TQt event and sends it to the widget.
+In your reimplementation of this function, if you want to stop the event being handled by Qt, return true. If you return false, this native event is passed back to Qt, which translates the event into a TQt event and sends it to the widget.
.PP
\fBWarning:\fR This function is not portable.
.PP
@@ -1789,11 +1789,11 @@ The old position is accessible through TQMoveEvent::oldPos().
.PP
See also resizeEvent(), event(), pos, and TQMoveEvent.
.SH "bool TQWidget::ownCursor () const"
-Returns TRUE if the widget uses its own cursor; otherwise returns FALSE. See the "ownCursor" property for details.
+Returns true if the widget uses its own cursor; otherwise returns false. See the "ownCursor" property for details.
.SH "bool TQWidget::ownFont () const"
-Returns TRUE if the widget uses its own font; otherwise returns FALSE. See the "ownFont" property for details.
+Returns true if the widget uses its own font; otherwise returns false. See the "ownFont" property for details.
.SH "bool TQWidget::ownPalette () const"
-Returns TRUE if the widget uses its own palette; otherwise returns FALSE. See the "ownPalette" property for details.
+Returns true if the widget uses its own palette; otherwise returns false. See the "ownPalette" property for details.
.SH "void TQWidget::paintEvent ( TQPaintEvent * )\fC [virtual protected]\fR"
This event handler can be reimplemented in a subclass to receive paint events.
.PP
@@ -1827,8 +1827,8 @@ Reimplement this function if your widget needs to know when its palette changes.
See also palette and palette.
.SH "const TQColor & TQWidget::paletteForegroundColor () const"
Returns the foreground color of the widget. See the "paletteForegroundColor" property for details.
-.SH "TQWidget * TQWidget::parentWidget ( bool sameWindow = FALSE ) const"
-Returns the parent of this widget, or 0 if it does not have any parent widget. If \fIsameWindow\fR is TRUE and the widget is top level returns 0; otherwise returns the widget's parent.
+.SH "TQWidget * TQWidget::parentWidget ( bool sameWindow = false ) const"
+Returns the parent of this widget, or 0 if it does not have any parent widget. If \fIsameWindow\fR is true and the widget is top level returns 0; otherwise returns the widget's parent.
.PP
Example: mdi/application.cpp.
.SH "void TQWidget::polish ()\fC [virtual slot]\fR"
@@ -1855,7 +1855,7 @@ After this call the widget will be visually in front of any overlapping sibling
See also lower() and stackUnder().
.PP
Example: showimg/showimg.cpp.
-.SH "void TQWidget::recreate ( TQWidget * parent, WFlags f, const TQPoint & p, bool showIt = FALSE )"
+.SH "void TQWidget::recreate ( TQWidget * parent, WFlags f, const TQPoint & p, bool showIt = false )"
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
.PP
This method is provided to aid porting from TQt 1.0 to 2.0. It has been renamed reparent() in TQt 2.0.
@@ -1869,10 +1869,10 @@ See also grabKeyboard(), grabMouse(), and releaseMouse().
Releases the mouse grab.
.PP
See also grabMouse(), grabKeyboard(), and releaseKeyboard().
-.SH "void TQWidget::repaint ( int x, int y, int w, int h, bool erase = TRUE )\fC [slot]\fR"
+.SH "void TQWidget::repaint ( int x, int y, int w, int h, bool erase = true )\fC [slot]\fR"
Repaints the widget directly by calling paintEvent() immediately, unless updates are disabled or the widget is hidden.
.PP
-If \fIerase\fR is TRUE, TQt erases the area \fI(x, y, w, h)\fR before the paintEvent() call.
+If \fIerase\fR is true, TQt erases the area \fI(x, y, w, h)\fR before the paintEvent() call.
.PP
If \fIw\fR is negative, it is replaced with \fCwidth() - x\fR, and if \fIh\fR is negative, it is replaced width \fCheight() - y\fR.
.PP
@@ -1891,28 +1891,28 @@ This version erases and repaints the entire widget.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
This version repaints the entire widget.
-.SH "void TQWidget::repaint ( const TQRect & r, bool erase = TRUE )\fC [slot]\fR"
+.SH "void TQWidget::repaint ( const TQRect & r, bool erase = true )\fC [slot]\fR"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Repaints the widget directly by calling paintEvent() directly, unless updates are disabled or the widget is hidden.
.PP
-Erases the widget region \fIr\fR if \fIerase\fR is TRUE.
-.SH "void TQWidget::repaint ( const TQRegion & reg, bool erase = TRUE )\fC [slot]\fR"
+Erases the widget region \fIr\fR if \fIerase\fR is true.
+.SH "void TQWidget::repaint ( const TQRegion & reg, bool erase = true )\fC [slot]\fR"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Repaints the widget directly by calling paintEvent() directly, unless updates are disabled or the widget is hidden.
.PP
-Erases the widget region \fIreg\fR if \fIerase\fR is TRUE.
+Erases the widget region \fIreg\fR if \fIerase\fR is true.
.PP
Only use repaint if your widget needs to be repainted immediately, for example when doing some animation. In all other cases, use update(). Calling update() many times in a row will generate a single paint event.
.PP
\fBWarning:\fR If you call repaint() in a function which may itself be called from paintEvent(), you may get infinite recursion. The update() function never causes recursion.
.PP
See also update(), paintEvent(), updatesEnabled, and erase().
-.SH "void TQWidget::reparent ( TQWidget * parent, WFlags f, const TQPoint & p, bool showIt = FALSE )\fC [virtual]\fR"
+.SH "void TQWidget::reparent ( TQWidget * parent, WFlags f, const TQPoint & p, bool showIt = false )\fC [virtual]\fR"
Reparents the widget. The widget gets a new \fIparent\fR, new widget flags (\fIf\fR, but as usual, use 0) at a new position in its new parent (\fIp\fR).
.PP
-If \fIshowIt\fR is TRUE, show() is called once the widget has been reparented.
+If \fIshowIt\fR is true, show() is called once the widget has been reparented.
.PP
If the new parent widget is in a different top-level widget, the reparented widget and its children are appended to the end of the tab chain 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.
.PP
@@ -1923,7 +1923,7 @@ If the new parent widget is in the same top-level widget as the old parent, repa
See also getWFlags().
.PP
Example: toplevel/options.ui.h.
-.SH "void TQWidget::reparent ( TQWidget * parent, const TQPoint & p, bool showIt = FALSE )"
+.SH "void TQWidget::reparent ( TQWidget * parent, const TQPoint & p, bool showIt = false )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
A convenience version of reparent that does not take widget flags as argument.
@@ -2010,7 +2010,7 @@ Sets the window caption (title). See the "caption" property for details.
.SH "void TQWidget::setCursor ( const TQCursor & )\fC [virtual]\fR"
Sets the cursor shape for this widget. See the "cursor" property for details.
.SH "void TQWidget::setDisabled ( bool disable )\fC [slot]\fR"
-Disables widget input events if \fIdisable\fR is TRUE; otherwise enables input events.
+Disables widget input events if \fIdisable\fR is true; otherwise enables input events.
.PP
See the enabled documentation for more information.
.PP
@@ -2097,7 +2097,7 @@ Sets the widget's icon text. See the "iconText" property for details.
.SH "void TQWidget::setInputMethodEnabled ( bool b )"
Sets enables or disables the use of input methods for this widget to \fIb\fR. See the "inputMethodEnabled" property for details.
.SH "void TQWidget::setKeyCompression ( bool compress )\fC [virtual protected]\fR"
-Enables key event compression, if \fIcompress\fR is TRUE, and disables it if \fIcompress\fR is FALSE.
+Enables key event compression, if \fIcompress\fR is true, and disables it if \fIcompress\fR is false.
.PP
Key compression is off by default (except for TQLineEdit and TQTextEdit), so widgets receive one key press event for each key press (or more, since autorepeat is usually on). If you turn it on and your program doesn't keep up with key input, TQt may try to compress key events so that more than one character can be processed in each event.
.PP
@@ -2138,14 +2138,14 @@ This is an overloaded member function, provided for convenience. It behaves esse
This function corresponds to setMaximumSize( TQSize(\fImaxw\fR, \fImaxh\fR) ). Sets the maximum width to \fImaxw\fR and the maximum height to \fImaxh\fR.
.SH "void TQWidget::setMaximumWidth ( int maxw )"
Sets the widget's maximum width to \fImaxw\fR. See the "maximumWidth" property for details.
-.SH "void TQWidget::setMicroFocusHint ( int x, int y, int width, int height, bool text = TRUE, TQFont * f = 0 )\fC [virtual protected]\fR"
+.SH "void TQWidget::setMicroFocusHint ( int x, int y, int width, int height, bool text = true, TQFont * f = 0 )\fC [virtual protected]\fR"
When a widget gets focus, it should call setMicroFocusHint() with some appropriate position and size, \fIx\fR, \fIy\fR, \fIwidth\fR and \fIheight\fR. This has no \fIvisual\fR effect, it just provides hints to any system-specific input handling tools.
.PP
-The \fItext\fR argument should be TRUE if this is a position for text input.
+The \fItext\fR argument should be true if this is a position for text input.
.PP
-In the Windows version of Qt, this method sets the system caret, which is used for user Accessibility focus handling. If \fItext\fR is TRUE, it also sets the IME composition window in Far East Asian language input systems.
+In the Windows version of Qt, this method sets the system caret, which is used for user Accessibility focus handling. If \fItext\fR is true, it also sets the IME composition window in Far East Asian language input systems.
.PP
-In the X11 version of Qt, if \fItext\fR is TRUE, this method sets the XIM "spot" point for complex language input handling.
+In the X11 version of Qt, if \fItext\fR is true, this method sets the XIM "spot" point for complex language input handling.
.PP
The font \fIf\fR is a rendering hint to the currently active input method. If \fIf\fR is 0 the widget's font is used.
.PP
@@ -2186,7 +2186,7 @@ This is an overloaded member function, provided for convenience. It behaves esse
Sets the x (width) size increment to \fIw\fR and the y (height) size increment to \fIh\fR.
.SH "void TQWidget::setSizePolicy ( TQSizePolicy )\fC [virtual]\fR"
Sets the default layout behavior of the widget. See the "sizePolicy" property for details.
-.SH "void TQWidget::setSizePolicy ( TQSizePolicy::SizeType hor, TQSizePolicy::SizeType ver, bool hfw = FALSE )"
+.SH "void TQWidget::setSizePolicy ( TQSizePolicy::SizeType hor, TQSizePolicy::SizeType ver, bool hfw = false )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Sets the size policy of the widget to \fIhor\fR, \fIver\fR and \fIhfw\fR (height for width).
@@ -2254,7 +2254,7 @@ Sets the level of opacity for the window to \fIlevel\fR. See the "windowOpacity"
.SH "void TQWidget::setWindowState ( uint windowState )"
Sets the window state to \fIwindowState\fR. The window state is a OR'ed combination of TQt::WindowState: WindowMinimized, WindowMaximized, WindowFullScreen and WindowActive.
.PP
-If the window is not visible (i.e. isVisible() returns FALSE), the window state will take effect when show() is called. For visible windows, the change is immediate. For example, to toggle between full-screen and mormal mode, use the following code:
+If the window is not visible (i.e. isVisible() returns false), the window state will take effect when show() is called. For visible windows, the change is immediate. For example, to toggle between full-screen and mormal mode, use the following code:
.PP
.nf
.br
@@ -2471,7 +2471,7 @@ Returns the width of the widget excluding any window frame. See the "width" prop
.SH "bool TQWidget::winEvent ( MSG * )\fC [virtual protected]\fR"
This special event handler can be reimplemented in a subclass to receive native Windows events.
.PP
-In your reimplementation of this function, if you want to stop the event being handled by Qt, return TRUE. If you return FALSE, this native event is passed back to Qt, which translates the event into a TQt event and sends it to the widget.
+In your reimplementation of this function, if you want to stop the event being handled by Qt, return true. If you return false, this native event is passed back to Qt, which translates the event into a TQt event and sends it to the widget.
.PP
\fBWarning:\fR This function is not portable.
.PP
@@ -2501,7 +2501,7 @@ Returns the x coordinate of the widget relative to its parent including any wind
.SH "bool TQWidget::x11Event ( XEvent * )\fC [virtual protected]\fR"
This special event handler can be reimplemented in a subclass to receive native X11 events.
.PP
-In your reimplementation of this function, if you want to stop the event being handled by Qt, return TRUE. If you return FALSE, this native event is passed back to Qt, which translates the event into a TQt event and sends it to the widget.
+In your reimplementation of this function, if you want to stop the event being handled by Qt, return true. If you return false, this native event is passed back to Qt, which translates the event into a TQt event and sends it to the widget.
.PP
\fBWarning:\fR This function is not portable.
.PP
@@ -2512,7 +2512,7 @@ Returns the y coordinate of the widget relative to its parent and including any
.SH "bool acceptDrops"
This property holds whether drop events are enabled for this widget.
.PP
-Setting this property to TRUE announces to the system that this widget \fImay\fR be able to accept drop events.
+Setting this property to true announces to the system that this widget \fImay\fR be able to accept drop events.
.PP
If the widget is the desktop (TQWidget::isDesktop()), this may fail if another application is using the desktop; you can call acceptDrops() to test if this occurs.
.PP
@@ -2522,7 +2522,7 @@ Set this property's value with setAcceptDrops() and get this property's value wi
.SH "bool autoMask"
This property holds whether the auto mask feature is enabled for the widget.
.PP
-Transparent widgets use a mask to define their visible region. TQWidget has some built-in support to make the task of 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 will happen.
+Transparent widgets use a mask to define their visible region. TQWidget has some built-in support to make the task of 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 will happen.
.PP
Note: when you re-implement resizeEvent(), focusInEvent() or focusOutEvent() in your custom widgets and still want to ensure that the auto mask calculation works, you should add:
.PP
@@ -2640,7 +2640,7 @@ Set this property's value with setCursor(), get this property's value with curso
.SH "bool customWhatsThis"
This property holds whether the widget wants to handle What's This help manually.
.PP
-The default implementation of customWhatsThis() returns FALSE, which means the widget will not receive any events in Whats This mode.
+The default implementation of customWhatsThis() returns false, which means the widget will not receive any events in Whats This mode.
.PP
The widget may leave What's This mode by calling TQWhatsThis::leaveWhatsThisMode(), with or without actually displaying any help text.
.PP
@@ -2756,7 +2756,7 @@ Get this property's value with height().
.SH "bool hidden"
This property holds whether the widget is explicitly hidden.
.PP
-If FALSE, the widget is visible or would become visible if all its ancestors became visible.
+If false, the widget is visible or would become visible if all its ancestors became visible.
.PP
See also hide(), show(), visible, isVisibleTo(), and shown.
.PP
@@ -2782,7 +2782,7 @@ This property holds enables or disables the use of input methods for this widget
.PP
Most Widgets (as eg. buttons) that do not handle text input should have the input method disabled if they have focus. This is the default.
.PP
-If a widget handles text input it should set this property to TRUE.
+If a widget handles text input it should set this property to true.
.PP
Set this property's value with setInputMethodEnabled() and get this property's value with isInputMethodEnabled().
.SH "bool isActiveWindow"
@@ -2790,7 +2790,7 @@ This property holds whether this widget is the active window.
.PP
The active window is the window that contains the widget that has keyboard focus.
.PP
-When popup windows are visible, this property is TRUE for both the active window \fIand\fR for the popup.
+When popup windows are visible, this property is true for both the active window \fIand\fR for the popup.
.PP
See also setActiveWindow() and TQApplication::activeWindow().
.PP
@@ -2938,7 +2938,7 @@ Set this property's value with setMouseTracking() and get this property's value
.SH "bool ownCursor"
This property holds whether the widget uses its own cursor.
.PP
-If FALSE, the widget uses its parent widget's cursor.
+If false, the widget uses its parent widget's cursor.
.PP
See also cursor.
.PP
@@ -2946,7 +2946,7 @@ Get this property's value with ownCursor().
.SH "bool ownFont"
This property holds whether the widget uses its own font.
.PP
-If FALSE, the widget uses its parent widget's font.
+If false, the widget uses its parent widget's font.
.PP
See also font.
.PP
@@ -2954,7 +2954,7 @@ Get this property's value with ownFont().
.SH "bool ownPalette"
This property holds whether the widget uses its own palette.
.PP
-If FALSE, the widget uses its parent widget's palette.
+If false, the widget uses its parent widget's palette.
.PP
See also palette.
.PP
@@ -3026,7 +3026,7 @@ Get this property's value with rect().
.SH "bool shown"
This property holds whether the widget is shown.
.PP
-If TRUE, the widget is visible or would become visible if all its ancestors became visible.
+If true, the widget is visible or would become visible if all its ancestors became visible.
.PP
See also hide(), show(), visible, isVisibleTo(), and hidden.
.PP
@@ -3106,11 +3106,11 @@ Example:
.PP
.nf
.br
- setUpdatesEnabled( FALSE );
+ setUpdatesEnabled( false );
.br
bigVisualChanges();
.br
- setUpdatesEnabled( TRUE );
+ setUpdatesEnabled( true );
.br
repaint();
.br