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.3qt86
1 files changed, 43 insertions, 43 deletions
diff --git a/doc/man/man3/tqwidget.3qt b/doc/man/man3/tqwidget.3qt
index 38ed2567d..df77229c4 100644
--- a/doc/man/man3/tqwidget.3qt
+++ b/doc/man/man3/tqwidget.3qt
@@ -11,7 +11,7 @@ TQWidget \- The base class of all user interface objects
.SH SYNOPSIS
\fC#include <tqwidget.h>\fR
.PP
-Inherits TQObject and QPaintDevice.
+Inherits TQObject and TQPaintDevice.
.PP
Inherited by QButton, QFrame, QDialog, QComboBox, TQDataBrowser, TQDataView, TQDateTimeEditBase, TQDateTimeEdit, QDesktopWidget, QDial, QDockArea, QGLWidget, QHeader, TQMainWindow, QMotifWidget, QNPWidget, QScrollBar, TQSizeGrip, QSlider, QSpinBox, QSplashScreen, TQStatusBar, QTabBar, QTabWidget, TQWorkspace, and QXtWidget.
.PP
@@ -213,7 +213,7 @@ Inherited by QButton, QFrame, QDialog, QComboBox, TQDataBrowser, TQDataView, TQD
.BI "virtual void \fBsetErasePixmap\fR ( const QPixmap & pixmap )"
.br
.ti -1c
-.BI "const QColorGroup & \fBcolorGroup\fR () const"
+.BI "const TQColorGroup & \fBcolorGroup\fR () const"
.br
.ti -1c
.BI "const QPalette & \fBpalette\fR () const"
@@ -246,25 +246,25 @@ Inherited by QButton, QFrame, QDialog, QComboBox, TQDataBrowser, TQDataView, TQD
.BI "virtual void \fBsetPaletteBackgroundPixmap\fR ( const QPixmap & )"
.br
.ti -1c
-.BI "const QBrush & \fBbackgroundBrush\fR () const"
+.BI "const TQBrush & \fBbackgroundBrush\fR () const"
.br
.ti -1c
-.BI "QFont \fBfont\fR () const"
+.BI "TQFont \fBfont\fR () const"
.br
.ti -1c
.BI "bool \fBownFont\fR () const"
.br
.ti -1c
-.BI "virtual void \fBsetFont\fR ( const QFont & )"
+.BI "virtual void \fBsetFont\fR ( const TQFont & )"
.br
.ti -1c
.BI "void \fBunsetFont\fR ()"
.br
.ti -1c
-.BI "QFontMetrics \fBfontMetrics\fR () const"
+.BI "TQFontMetrics \fBfontMetrics\fR () const"
.br
.ti -1c
-.BI "QFontInfo \fBfontInfo\fR () const"
+.BI "TQFontInfo \fBfontInfo\fR () const"
.br
.ti -1c
.BI "const QCursor & \fBcursor\fR () const"
@@ -513,7 +513,7 @@ Inherited by QButton, QFrame, QDialog, QComboBox, TQDataBrowser, TQDataView, TQD
.BI "void setPalette ( const QPalette & p, bool ) \fI(obsolete)\fR"
.br
.ti -1c
-.BI "void setFont ( const QFont & f, bool ) \fI(obsolete)\fR"
+.BI "void setFont ( const TQFont & f, bool ) \fI(obsolete)\fR"
.br
.in -1c
.SS "Public Slots"
@@ -660,7 +660,7 @@ Inherited by QButton, QFrame, QDialog, QComboBox, TQDataBrowser, TQDataView, TQD
.BI "bool \fBautoMask\fR - whether the auto mask feature is enabled for the widget"
.br
.ti -1c
-.BI "QBrush \fBbackgroundBrush\fR - the widget's background brush \fI(read " "only" ")\fR"
+.BI "TQBrush \fBbackgroundBrush\fR - the widget's background brush \fI(read " "only" ")\fR"
.br
.ti -1c
.BI "BackgroundMode \fBbackgroundMode\fR - the color role used for painting the background of the widget"
@@ -681,7 +681,7 @@ Inherited by QButton, QFrame, QDialog, QComboBox, TQDataBrowser, TQDataView, TQD
.BI "QRegion \fBchildrenRegion\fR - the combined region occupied by the widget's children \fI(read " "only" ")\fR"
.br
.ti -1c
-.BI "QColorGroup \fBcolorGroup\fR - the current color group of the widget palette \fI(read " "only" ")\fR"
+.BI "TQColorGroup \fBcolorGroup\fR - the current color group of the widget palette \fI(read " "only" ")\fR"
.br
.ti -1c
.BI "QCursor \fBcursor\fR - the cursor shape for this widget"
@@ -702,7 +702,7 @@ Inherited by QButton, QFrame, QDialog, QComboBox, TQDataBrowser, TQDataView, TQD
.BI "FocusPolicy \fBfocusPolicy\fR - the way the widget accepts keyboard focus"
.br
.ti -1c
-.BI "QFont \fBfont\fR - the font currently set for the widget"
+.BI "TQFont \fBfont\fR - the font currently set for the widget"
.br
.ti -1c
.BI "QRect \fBframeGeometry\fR - geometry of the widget relative to its parent including any window frame \fI(read " "only" ")\fR"
@@ -888,7 +888,7 @@ Inherited by QButton, QFrame, QDialog, QComboBox, TQDataBrowser, TQDataView, TQD
.BI "virtual void \fBleaveEvent\fR ( QEvent * )"
.br
.ti -1c
-.BI "virtual void \fBpaintEvent\fR ( QPaintEvent * )"
+.BI "virtual void \fBpaintEvent\fR ( TQPaintEvent * )"
.br
.ti -1c
.BI "virtual void \fBmoveEvent\fR ( QMoveEvent * )"
@@ -954,7 +954,7 @@ Inherited by QButton, QFrame, QDialog, QComboBox, TQDataBrowser, TQDataView, TQD
.BI "virtual void \fBpaletteChange\fR ( const QPalette & oldPalette )"
.br
.ti -1c
-.BI "virtual void \fBfontChange\fR ( const QFont & oldFont )"
+.BI "virtual void \fBfontChange\fR ( const TQFont & oldFont )"
.br
.ti -1c
.BI "virtual void \fBwindowActivationChange\fR ( bool oldActive )"
@@ -990,7 +990,7 @@ Inherited by QButton, QFrame, QDialog, QComboBox, TQDataBrowser, TQDataView, TQD
.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, QFont * 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
@@ -1101,7 +1101,7 @@ It is almost always useful to reimplement sizeHint() and to set the correct size
If your widget is a top-level window, setCaption() and setIcon() set the title bar and icon respectively.
.IP
.PP
-See also QEvent, QPainter, QGridLayout, QBoxLayout, and Abstract Widget Classes.
+See also QEvent, TQPainter, QGridLayout, QBoxLayout, and Abstract Widget Classes.
.SS "Member Type Documentation"
.SH "TQWidget::BackgroundOrigin"
This enum defines the origin used to draw a widget's background pixmap.
@@ -1169,7 +1169,7 @@ Example: xform/xform.cpp.
Reimplemented in QMessageBox.
.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.
-.SH "const QBrush & TQWidget::backgroundBrush () const"
+.SH "const TQBrush & TQWidget::backgroundBrush () const"
Returns the widget's background brush. See the "backgroundBrush" property for details.
.SH "const TQColor & TQWidget::backgroundColor () const"
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code. Use paletteBackgroundColor() or eraseColor() instead.
@@ -1254,7 +1254,7 @@ See also event(), hide(), close(), and QCloseEvent.
.PP
Examples:
.)l action/application.cpp, application/application.cpp, chart/chartform.cpp, i18n/mywidget.cpp, mdi/application.cpp, popup/popup.cpp, and qwerty/qwerty.cpp.
-.SH "const QColorGroup & TQWidget::colorGroup () const"
+.SH "const TQColorGroup & TQWidget::colorGroup () const"
Returns the current color group of the widget palette. See the "colorGroup" property for details.
.SH "void TQWidget::constPolish () const\fC [slot]\fR"
Ensures that the widget is properly initialized by calling polish().
@@ -1317,7 +1317,7 @@ The \fIy\fR position is the base line position of the text. The text is drawn us
.PP
This function is provided for convenience. You will generally get more flexible results and often higher speed by using a a painter instead.
.PP
-See also font, foregroundColor(), and QPainter::drawText().
+See also font, foregroundColor(), and TQPainter::drawText().
.SH "void TQWidget::drawText ( const QPoint & pos, const TQString & str )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
@@ -1434,9 +1434,9 @@ Returns the focus proxy, or 0 if there is no focus proxy.
See also setFocusProxy().
.SH "TQWidget * TQWidget::focusWidget () const"
Returns the focus widget in this widget's window. This is not the same as QApplication::focusWidget(), which returns the focus widget in the currently active window.
-.SH "QFont TQWidget::font () const"
+.SH "TQFont TQWidget::font () const"
Returns the font currently set for the widget. See the "font" property for details.
-.SH "void TQWidget::fontChange ( const QFont & oldFont )\fC [virtual protected]\fR"
+.SH "void TQWidget::fontChange ( const TQFont & oldFont )\fC [virtual protected]\fR"
This virtual function is called from setFont(). \fIoldFont\fR is the previous font; you can get the new font from font().
.PP
Reimplement this function if your widget needs to know when its font changes. You will almost certainly need to update the widget using update().
@@ -1444,12 +1444,12 @@ Reimplement this function if your widget needs to know when its font changes. Yo
The default implementation updates the widget including its geometry.
.PP
See also font, font, update(), and updateGeometry().
-.SH "QFontInfo TQWidget::fontInfo () const"
-Returns the font info for the widget's current font. Equivalent to QFontInto(widget->font()).
+.SH "TQFontInfo TQWidget::fontInfo () const"
+Returns the font info for the widget's current font. Equivalent to TQFontInto(widget->font()).
.PP
See also font, fontMetrics(), and font.
-.SH "QFontMetrics TQWidget::fontMetrics () const"
-Returns the font metrics for the widget's current font. Equivalent to QFontMetrics(widget->font()).
+.SH "TQFontMetrics TQWidget::fontMetrics () const"
+Returns the font metrics for the widget's current font. Equivalent to TQFontMetrics(widget->font()).
.PP
See also font, fontInfo(), and font.
.PP
@@ -1654,7 +1654,7 @@ If the widget does not have a layout, layout() returns 0.
See also sizePolicy.
.PP
Examples:
-.)l chart/optionsform.cpp and fonts/simple-qfont-demo/viewer.cpp.
+.)l chart/optionsform.cpp and fonts/simple-tqfont-demo/viewer.cpp.
.SH "void TQWidget::leaveEvent ( QEvent * )\fC [virtual protected]\fR"
This event handler can be reimplemented in a subclass to receive widget leave events.
.PP
@@ -1712,9 +1712,9 @@ Returns the widget's maximum size. See the "maximumSize" property for details.
.SH "int TQWidget::maximumWidth () const"
Returns the widget's maximum width. See the "maximumWidth" property for details.
.SH "int TQWidget::metric ( int m ) const\fC [virtual protected]\fR"
-Internal implementation of the virtual QPaintDevice::metric() function.
+Internal implementation of the virtual TQPaintDevice::metric() function.
.PP
-Use the QPaintDeviceMetrics class instead.
+Use the TQPaintDeviceMetrics class instead.
.PP
\fIm\fR is the metric to get.
.SH "QRect TQWidget::microFocusHint () const"
@@ -1794,20 +1794,20 @@ Returns TRUE if the widget uses its own cursor; otherwise returns FALSE. See the
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.
-.SH "void TQWidget::paintEvent ( QPaintEvent * )\fC [virtual protected]\fR"
+.SH "void TQWidget::paintEvent ( TQPaintEvent * )\fC [virtual protected]\fR"
This event handler can be reimplemented in a subclass to receive paint events.
.PP
A paint event is a request to repaint all or part of the widget. It can happen as a result of repaint() or update(), or because the widget was obscured and has now been uncovered, or for many other reasons.
.PP
-Many widgets can simply repaint their entire surface when asked to, but some slow widgets need to optimize by painting only the requested region: QPaintEvent::region(). This speed optimization does not change the result, as painting is clipped to that region during event processing. QListView and TQCanvas do this, for example.
+Many widgets can simply repaint their entire surface when asked to, but some slow widgets need to optimize by painting only the requested region: TQPaintEvent::region(). This speed optimization does not change the result, as painting is clipped to that region during event processing. QListView and TQCanvas do this, for example.
.PP
Qt also tries to speed up painting by merging multiple paint events into one. When update() is called several times or the window system sends several paint events, TQt merges these events into one event with a larger region (see QRegion::unite()). repaint() does not permit this optimization, so we suggest using update() when possible.
.PP
-When the paint event occurs, the update region has normally been erased, so that you're painting on the widget's background. There are a couple of exceptions and QPaintEvent::erased() tells you whether the widget has been erased or not.
+When the paint event occurs, the update region has normally been erased, so that you're painting on the widget's background. There are a couple of exceptions and TQPaintEvent::erased() tells you whether the widget has been erased or not.
.PP
The background can be set using setBackgroundMode(), setPaletteBackgroundColor() or setBackgroundPixmap(). The documentation for setBackgroundMode() elaborates on the background; we recommend reading it.
.PP
-See also event(), repaint(), update(), QPainter, QPixmap, and QPaintEvent.
+See also event(), repaint(), update(), TQPainter, QPixmap, and TQPaintEvent.
.PP
Examples:
.)l drawlines/connect.cpp, forever/forever.cpp, qmag/qmag.cpp, scribble/scribble.cpp, splitter/splitter.cpp, t8/cannon.cpp, and t9/cannon.cpp.
@@ -2035,7 +2035,7 @@ Sets both the minimum and maximum heights of the widget to \fIh\fR without chang
See also sizeHint, minimumSize, maximumSize, and setFixedSize().
.PP
Examples:
-.)l fonts/simple-qfont-demo/viewer.cpp, layout/layout.cpp, tqdir/tqdir.cpp, and showimg/showimg.cpp.
+.)l fonts/simple-tqfont-demo/viewer.cpp, layout/layout.cpp, tqdir/tqdir.cpp, and showimg/showimg.cpp.
.SH "void TQWidget::setFixedSize ( const TQSize & s )"
Sets both the minimum and maximum sizes of the widget to \fIs\fR, thereby preventing it from ever growing or shrinking.
.PP
@@ -2076,14 +2076,14 @@ Some widgets, such as QComboBox, can "have focus", but create a child widget to
setFocusProxy() sets the widget which will actually get focus when" this widget" gets it. If there is a focus proxy, focusPolicy(), setFocusPolicy(), setFocus() and hasFocus() all operate on the focus proxy.
.PP
See also focusProxy().
-.SH "void TQWidget::setFont ( const QFont & )\fC [virtual]\fR"
+.SH "void TQWidget::setFont ( const TQFont & )\fC [virtual]\fR"
Sets the font currently set for the widget. See the "font" property for details.
.PP
Reimplemented in QComboBox, QLabel, and QTabDialog.
-.SH "void TQWidget::setFont ( const QFont & f, bool )"
+.SH "void TQWidget::setFont ( const TQFont & f, bool )"
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
.PP
-Use setFont(const QFont& font) instead.
+Use setFont(const TQFont& font) instead.
.SH "void TQWidget::setGeometry ( const QRect & )\fC [virtual slot]\fR"
Sets the geometry of the widget relative to its parent and excluding the window frame. See the "geometry" property for details.
.SH "void TQWidget::setGeometry ( int x, int y, int w, int h )\fC [virtual slot]\fR"
@@ -2140,7 +2140,7 @@ 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, QFont * 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.
@@ -2545,7 +2545,7 @@ While being a technically appealing concept, masks have a big drawback: when usi
See also updateMask(), setMask(), clearMask(), and backgroundOrigin.
.PP
Set this property's value with setAutoMask() and get this property's value with autoMask().
-.SH "QBrush backgroundBrush"
+.SH "TQBrush backgroundBrush"
This property holds the widget's background brush.
.PP
The background brush depends on a widget's palette and its background mode.
@@ -2615,7 +2615,7 @@ Hidden children are excluded.
See also childrenRect and geometry.
.PP
Get this property's value with childrenRegion().
-.SH "QColorGroup colorGroup"
+.SH "TQColorGroup colorGroup"
This property holds the current color group of the widget palette.
.PP
The color group is determined by the state of the widget. A disabled widget has the QPalette::disabled() color group, a widget with keyboard focus has the QPalette::active() color group, and an inactive widget has the QPalette::inactive() color group.
@@ -2693,7 +2693,7 @@ You must enable keyboard focus for a widget if it processes keyboard events. Thi
See also focusEnabled, focusInEvent(), focusOutEvent(), keyPressEvent(), keyReleaseEvent(), and enabled.
.PP
Set this property's value with setFocusPolicy() and get this property's value with focusPolicy().
-.SH "QFont font"
+.SH "TQFont font"
This property holds the font currently set for the widget.
.PP
The fontInfo() function reports the actual font that is being used by the widget.
@@ -2704,7 +2704,7 @@ This code fragment sets a 12 point helvetica bold font:
.PP
.nf
.br
- QFont f( "Helvetica", 12, QFont::Bold );
+ TQFont f( "Helvetica", 12, TQFont::Bold );
.br
setFont( f );
.br
@@ -2976,7 +2976,7 @@ Set this property's value with setPalette(), get this property's value with pale
.SH "TQColor paletteBackgroundColor"
This property holds the background color of the widget.
.PP
-The palette background color is usually set implicitly by setBackgroundMode(), although it can also be set explicitly by setPaletteBackgroundColor(). setPaletteBackgroundColor() is a convenience function that creates and sets a modified QPalette with setPalette(). The palette is modified according to the widget's background mode. For example, if the background mode is PaletteButton the color used for the palette's QColorGroup::Button color entry is set.
+The palette background color is usually set implicitly by setBackgroundMode(), although it can also be set explicitly by setPaletteBackgroundColor(). setPaletteBackgroundColor() is a convenience function that creates and sets a modified QPalette with setPalette(). The palette is modified according to the widget's background mode. For example, if the background mode is PaletteButton the color used for the palette's TQColorGroup::Button color entry is set.
.PP
If there is a background pixmap (set using setPaletteBackgroundPixmap()), then the return value of this function is indeterminate.
.PP
@@ -2986,7 +2986,7 @@ Set this property's value with setPaletteBackgroundColor(), get this property's
.SH "QPixmap paletteBackgroundPixmap"
This property holds the background pixmap of the widget.
.PP
-The palette background pixmap is usually set implicitly by setBackgroundMode(), although it can also be set explicitly by setPaletteBackgroundPixmap(). setPaletteBackgroundPixmap() is a convenience function that creates and sets a modified QPalette with setPalette(). The palette is modified according to the widget's background mode. For example, if the background mode is PaletteButton the pixmap used for the palette's QColorGroup::Button color entry is set.
+The palette background pixmap is usually set implicitly by setBackgroundMode(), although it can also be set explicitly by setPaletteBackgroundPixmap(). setPaletteBackgroundPixmap() is a convenience function that creates and sets a modified QPalette with setPalette(). The palette is modified according to the widget's background mode. For example, if the background mode is PaletteButton the pixmap used for the palette's TQColorGroup::Button color entry is set.
.PP
If there is a plain background color (set using setPaletteBackgroundColor()), then this function returns 0.
.PP
@@ -2996,7 +2996,7 @@ Set this property's value with setPaletteBackgroundPixmap(), get this property's
.SH "TQColor paletteForegroundColor"
This property holds the foreground color of the widget.
.PP
-setPaletteForegroundColor() is a convenience function that creates and sets a modified QPalette with setPalette(). The palette is modified according to the widget's \fIbackground mode\fR. For example, if the background mode is PaletteButton the palette entry QColorGroup::ButtonText is set to color.
+setPaletteForegroundColor() is a convenience function that creates and sets a modified QPalette with setPalette(). The palette is modified according to the widget's \fIbackground mode\fR. For example, if the background mode is PaletteButton the palette entry TQColorGroup::ButtonText is set to color.
.PP
See also palette, QApplication::setPalette(), backgroundMode, foregroundColor(), backgroundMode, and setEraseColor().
.PP