summaryrefslogtreecommitdiffstats
path: root/doc/man/man3/tqtooltip.3qt
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-07-02 21:37:22 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-07-06 11:24:55 +0900
commit7552c6d73043b1040139033f6864db48ae5446cf (patch)
treef90d24d072dd3ee6a3f909bf7778abc7669f03ef /doc/man/man3/tqtooltip.3qt
parentc113da2069b66130f67a0f27c699e1cec83588a5 (diff)
downloadtqt3-7552c6d73043b1040139033f6864db48ae5446cf.tar.gz
tqt3-7552c6d73043b1040139033f6864db48ae5446cf.zip
Rename main window nt* related files to equivalent tq*. The file
"ntqsession.h" was totally unnecessary and has been removed. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/man/man3/tqtooltip.3qt')
-rw-r--r--doc/man/man3/tqtooltip.3qt132
1 files changed, 66 insertions, 66 deletions
diff --git a/doc/man/man3/tqtooltip.3qt b/doc/man/man3/tqtooltip.3qt
index 83810cc86..c60104f8c 100644
--- a/doc/man/man3/tqtooltip.3qt
+++ b/doc/man/man3/tqtooltip.3qt
@@ -1,5 +1,5 @@
'\" t
-.TH QToolTip 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*-
+.TH TQToolTip 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*-
.\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the
.\" license file included in the distribution for a complete license
.\" statement.
@@ -7,22 +7,22 @@
.ad l
.nh
.SH NAME
-QToolTip \- Tool tips (balloon help) for any widget or rectangular part of a widget
+TQToolTip \- Tool tips (balloon help) for any widget or rectangular part of a widget
.SH SYNOPSIS
-\fC#include <ntqtooltip.h>\fR
+\fC#include <tqtooltip.h>\fR
.PP
Inherits Qt.
.PP
.SS "Public Members"
.in +1c
.ti -1c
-.BI "\fBQToolTip\fR ( TQWidget * widget, QToolTipGroup * group = 0 )"
+.BI "\fBTQToolTip\fR ( TQWidget * widget, TQToolTipGroup * group = 0 )"
.br
.ti -1c
.BI "TQWidget * \fBparentWidget\fR () const"
.br
.ti -1c
-.BI "QToolTipGroup * \fBgroup\fR () const"
+.BI "TQToolTipGroup * \fBgroup\fR () const"
.br
.in -1c
.SS "Static Public Members"
@@ -31,7 +31,7 @@ Inherits Qt.
.BI "void \fBadd\fR ( TQWidget * widget, const TQString & text )"
.br
.ti -1c
-.BI "void \fBadd\fR ( TQWidget * widget, const TQString & text, QToolTipGroup * group, const TQString & longText )"
+.BI "void \fBadd\fR ( TQWidget * widget, const TQString & text, TQToolTipGroup * group, const TQString & longText )"
.br
.ti -1c
.BI "void \fBremove\fR ( TQWidget * widget )"
@@ -40,7 +40,7 @@ Inherits Qt.
.BI "void \fBadd\fR ( TQWidget * widget, const QRect & rect, const TQString & text )"
.br
.ti -1c
-.BI "void \fBadd\fR ( TQWidget * widget, const QRect & rect, const TQString & text, QToolTipGroup * group, const TQString & groupText )"
+.BI "void \fBadd\fR ( TQWidget * widget, const QRect & rect, const TQString & text, TQToolTipGroup * group, const TQString & groupText )"
.br
.ti -1c
.BI "void \fBremove\fR ( TQWidget * widget, const QRect & rect )"
@@ -101,19 +101,19 @@ Inherits Qt.
.br
.in -1c
.SH DESCRIPTION
-The QToolTip class provides tool tips (balloon help) for any widget or rectangular part of a widget.
+The TQToolTip class provides tool tips (balloon help) for any widget or rectangular part of a widget.
.PP
The tip is a short, single line of text reminding the user of the widget's or rectangle's function. It is drawn immediately below the region in a distinctive black-on-yellow combination.
.PP
The tip can be any Rich-Text formatted string.
.PP
-QToolTipGroup provides a way for tool tips to display another text elsewhere (most often in a status bar).
+TQToolTipGroup provides a way for tool tips to display another text elsewhere (most often in a status bar).
.PP
-At any point in time, QToolTip is either dormant or active. In dormant mode the tips are not shown and in active mode they are. The mode is global, not particular to any one widget.
+At any point in time, TQToolTip is either dormant or active. In dormant mode the tips are not shown and in active mode they are. The mode is global, not particular to any one widget.
.PP
-QToolTip switches from dormant to active mode when the user hovers the mouse on a tip-equipped region for a second or so and remains active until the user either clicks a mouse button, presses a key, lets the mouse hover for five seconds or moves the mouse outside \fIall\fR tip-equipped regions for at least a second.
+TQToolTip switches from dormant to active mode when the user hovers the mouse on a tip-equipped region for a second or so and remains active until the user either clicks a mouse button, presses a key, lets the mouse hover for five seconds or moves the mouse outside \fIall\fR tip-equipped regions for at least a second.
.PP
-The QToolTip class can be used in three different ways: <ol type=1>
+The TQToolTip class can be used in three different ways: <ol type=1>
.IP 1
Adding a tip to an entire widget.
.IP 2
@@ -121,58 +121,58 @@ Adding a tip to a fixed rectangle within a widget.
.IP 3
Adding a tip to a dynamic rectangle within a widget.
.PP
-To add a tip to a widget, call the \fIstatic\fR function QToolTip::add() with the widget and tip as arguments:
+To add a tip to a widget, call the \fIstatic\fR function TQToolTip::add() with the widget and tip as arguments:
.PP
.nf
.br
- QToolTip::add( quitButton, "Leave the application" );
+ TQToolTip::add( quitButton, "Leave the application" );
.br
.fi
.PP
-This is the simplest and most common use of QToolTip. The tip will be deleted automatically when \fIquitButton\fR is deleted, but you can remove it yourself, too:
+This is the simplest and most common use of TQToolTip. The tip will be deleted automatically when \fIquitButton\fR is deleted, but you can remove it yourself, too:
.PP
.nf
.br
- QToolTip::remove( quitButton );
+ TQToolTip::remove( quitButton );
.br
.fi
.PP
-You can also display another text (typically in a status bar), courtesy of QToolTipGroup. This example assumes that \fIgrp\fR is a \fCQToolTipGroup *\fR and is already connected to the appropriate status bar:
+You can also display another text (typically in a status bar), courtesy of TQToolTipGroup. This example assumes that \fIgrp\fR is a \fCTQToolTipGroup *\fR and is already connected to the appropriate status bar:
.PP
.nf
.br
- QToolTip::add( quitButton, "Leave the application", grp,
+ TQToolTip::add( quitButton, "Leave the application", grp,
.br
"Leave the application, prompting to save if necessary" );
.br
- QToolTip::add( closeButton, "Close this window", grp,
+ TQToolTip::add( closeButton, "Close this window", grp,
.br
"Close this window, prompting to save if necessary" );
.br
.fi
.PP
-To add a tip to a fixed rectangle within a widget, call the static function QToolTip::add() with the widget, rectangle and tip as arguments. (See the tooltip/tooltip.cpp example.) Again, you can supply a \fCQToolTipGroup *\fR and another text if you want.
+To add a tip to a fixed rectangle within a widget, call the static function TQToolTip::add() with the widget, rectangle and tip as arguments. (See the tooltip/tooltip.cpp example.) Again, you can supply a \fCTQToolTipGroup *\fR and another text if you want.
.PP
-Both of these are one-liners and cover the majority of cases. The third and most general way to use QToolTip requires you to reimplement a pure virtual function to decide whether to pop up a tool tip. The tooltip/tooltip.cpp example demonstrates this too. This mode can be used to implement tips for text that can move as the user scrolls, for example.
+Both of these are one-liners and cover the majority of cases. The third and most general way to use TQToolTip requires you to reimplement a pure virtual function to decide whether to pop up a tool tip. The tooltip/tooltip.cpp example demonstrates this too. This mode can be used to implement tips for text that can move as the user scrolls, for example.
.PP
-To use QToolTip like this, you must subclass QToolTip and reimplement maybeTip(). QToolTip calls maybeTip() when a tip should pop up, and maybeTip() decides whether to show a tip.
+To use TQToolTip like this, you must subclass TQToolTip and reimplement maybeTip(). TQToolTip calls maybeTip() when a tip should pop up, and maybeTip() decides whether to show a tip.
.PP
-Tool tips can be globally disabled using QToolTip::setGloballyEnabled() or disabled in groups with QToolTipGroup::setEnabled().
+Tool tips can be globally disabled using TQToolTip::setGloballyEnabled() or disabled in groups with TQToolTipGroup::setEnabled().
.PP
You can retrieve the text of a tooltip for a given position within a widget using textFor().
.PP
The global tooltip font and palette can be set with the static setFont() and setPalette() functions respectively.
.PP
-See also QStatusBar, QWhatsThis, QToolTipGroup, GUI Design Handbook: Tool Tip, and Help System.
+See also TQStatusBar, QWhatsThis, TQToolTipGroup, GUI Design Handbook: Tool Tip, and Help System.
.SH MEMBER FUNCTION DOCUMENTATION
-.SH "QToolTip::QToolTip ( TQWidget * widget, QToolTipGroup * group = 0 )"
+.SH "TQToolTip::TQToolTip ( TQWidget * widget, TQToolTipGroup * group = 0 )"
Constructs a tool tip object. This is only necessary if you need tool tips on regions that can move within the widget (most often because the widget's contents can scroll).
.PP
\fIwidget\fR is the widget you want to add dynamic tool tips to and \fIgroup\fR (optional) is the tool tip group they should belong to.
.PP
-\fBWarning:\fR QToolTip is not a subclass of TQObject, so the instance of QToolTip is not deleted when \fIwidget\fR is deleted.
+\fBWarning:\fR TQToolTip is not a subclass of TQObject, so the instance of TQToolTip is not deleted when \fIwidget\fR is deleted.
.PP
-\fBWarning:\fR If you delete the tool tip before you have deleted \fIwidget\fR then you need to make sure you call remove() yourself from \fIwidget\fR in your reimplemented QToolTip destructor.
+\fBWarning:\fR If you delete the tool tip before you have deleted \fIwidget\fR then you need to make sure you call remove() yourself from \fIwidget\fR in your reimplemented TQToolTip destructor.
.PP
.nf
.br
@@ -187,14 +187,14 @@ Constructs a tool tip object. This is only necessary if you need tool tips on re
.fi
.PP
See also maybeTip().
-.SH "void QToolTip::add ( TQWidget * widget, const TQString & text )\fC [static]\fR"
+.SH "void TQToolTip::add ( TQWidget * widget, const TQString & text )\fC [static]\fR"
Adds a tool tip to \fIwidget\fR. \fItext\fR is the text to be shown in the tool tip.
.PP
-This is the most common entry point to the QToolTip class; it is suitable for adding tool tips to buttons, checkboxes, comboboxes and so on.
+This is the most common entry point to the TQToolTip class; it is suitable for adding tool tips to buttons, checkboxes, comboboxes and so on.
.PP
Examples:
.)l helpsystem/mainwindow.cpp, qdir/qdir.cpp, scribble/scribble.cpp, and tooltip/tooltip.cpp.
-.SH "void QToolTip::add ( TQWidget * widget, const TQString & text, QToolTipGroup * group, const TQString & longText )\fC [static]\fR"
+.SH "void TQToolTip::add ( TQWidget * widget, const TQString & text, TQToolTipGroup * group, const TQString & longText )\fC [static]\fR"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Adds a tool tip to \fIwidget\fR and to tool tip group \fIgroup\fR.
@@ -202,11 +202,11 @@ Adds a tool tip to \fIwidget\fR and to tool tip group \fIgroup\fR.
\fItext\fR is the text shown in the tool tip and \fIlongText\fR is the text emitted from \fIgroup\fR.
.PP
Normally, \fIlongText\fR is shown in a status bar or similar.
-.SH "void QToolTip::add ( TQWidget * widget, const QRect & rect, const TQString & text )\fC [static]\fR"
+.SH "void TQToolTip::add ( TQWidget * widget, const QRect & rect, const TQString & text )\fC [static]\fR"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Adds a tool tip to a fixed rectangle, \fIrect\fR, within \fIwidget\fR. \fItext\fR is the text shown in the tool tip.
-.SH "void QToolTip::add ( TQWidget * widget, const QRect & rect, const TQString & text, QToolTipGroup * group, const TQString & groupText )\fC [static]\fR"
+.SH "void TQToolTip::add ( TQWidget * widget, const QRect & rect, const TQString & text, TQToolTipGroup * group, const TQString & groupText )\fC [static]\fR"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Adds a tool tip to an entire \fIwidget\fR and to tool tip group \fIgroup\fR. The tooltip will disappear when the mouse leaves the \fIrect\fR.
@@ -214,32 +214,32 @@ Adds a tool tip to an entire \fIwidget\fR and to tool tip group \fIgroup\fR. The
\fItext\fR is the text shown in the tool tip and \fIgroupText\fR is the text emitted from \fIgroup\fR.
.PP
Normally, \fIgroupText\fR is shown in a status bar or similar.
-.SH "void QToolTip::clear ()\fC [protected]\fR"
+.SH "void TQToolTip::clear ()\fC [protected]\fR"
Immediately removes all tool tips for this tooltip's parent widget.
-.SH "bool QToolTip::enabled ()\fC [static]\fR"
+.SH "bool TQToolTip::enabled ()\fC [static]\fR"
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
-.SH "QFont QToolTip::font ()\fC [static]\fR"
+.SH "QFont TQToolTip::font ()\fC [static]\fR"
Returns the font common to all tool tips.
.PP
See also setFont().
-.SH "QToolTipGroup * QToolTip::group () const"
-Returns the tool tip group this QToolTip is a member of or 0 if it isn't a member of any group.
+.SH "TQToolTipGroup * TQToolTip::group () const"
+Returns the tool tip group this TQToolTip is a member of or 0 if it isn't a member of any group.
.PP
The tool tip group is the object responsible for maintaining contact between tool tips and a status bar or something else which can show the longer help text.
.PP
-See also parentWidget() and QToolTipGroup.
-.SH "void QToolTip::hide ()\fC [static]\fR"
+See also parentWidget() and TQToolTipGroup.
+.SH "void TQToolTip::hide ()\fC [static]\fR"
Hides any tip that is currently being shown.
.PP
-Normally, there is no need to call this function; QToolTip takes care of showing and hiding the tips as the user moves the mouse.
-.SH "bool QToolTip::isGloballyEnabled ()\fC [static]\fR"
+Normally, there is no need to call this function; TQToolTip takes care of showing and hiding the tips as the user moves the mouse.
+.SH "bool TQToolTip::isGloballyEnabled ()\fC [static]\fR"
Returns whether tool tips are enabled globally.
.PP
See also setGloballyEnabled().
-.SH "void QToolTip::maybeTip ( const QPoint & p )\fC [pure virtual protected]\fR"
-This pure virtual function is half of the most versatile interface QToolTip offers.
+.SH "void TQToolTip::maybeTip ( const QPoint & p )\fC [pure virtual protected]\fR"
+This pure virtual function is half of the most versatile interface TQToolTip offers.
.PP
-It is called when there is a possibility that a tool tip should be shown and must decide whether there is a tool tip for the point \fIp\fR in the widget that this QToolTip object relates to. If so, maybeTip() must call tip() with the rectangle the tip applies to, the tip's text and optionally the QToolTipGroup details and the geometry in screen coordinates.
+It is called when there is a possibility that a tool tip should be shown and must decide whether there is a tool tip for the point \fIp\fR in the widget that this TQToolTip object relates to. If so, maybeTip() must call tip() with the rectangle the tip applies to, the tip's text and optionally the TQToolTipGroup details and the geometry in screen coordinates.
.PP
\fIp\fR is given in that widget's local coordinates. Most maybeTip() implementations will be of the form:
.PP
@@ -253,7 +253,7 @@ It is called when there is a possibility that a tool tip should be shown and mus
.br
.fi
.PP
-The first argument to tip() (a rectangle) must encompass \fIp\fR, i.e. the tip must apply to the current mouse position; otherwise QToolTip's operation is undefined.
+The first argument to tip() (a rectangle) must encompass \fIp\fR, i.e. the tip must apply to the current mouse position; otherwise TQToolTip's operation is undefined.
.PP
Note that the tip will disappear once the mouse moves outside the rectangle you give to tip(), and will not reappear if the mouse moves back in: maybeTip() is called again instead.
.PP
@@ -261,75 +261,75 @@ See also tip().
.PP
Examples:
.)l helpsystem/tooltip.cpp and tooltip/tooltip.cpp.
-.SH "QPalette QToolTip::palette ()\fC [static]\fR"
+.SH "QPalette TQToolTip::palette ()\fC [static]\fR"
Returns the palette common to all tool tips.
.PP
See also setPalette().
-.SH "TQWidget * QToolTip::parentWidget () const"
-Returns the widget this QToolTip applies to.
+.SH "TQWidget * TQToolTip::parentWidget () const"
+Returns the widget this TQToolTip applies to.
.PP
The tool tip is destroyed automatically when the parent widget is destroyed.
.PP
See also group().
-.SH "void QToolTip::remove ( TQWidget * widget )\fC [static]\fR"
+.SH "void TQToolTip::remove ( TQWidget * widget )\fC [static]\fR"
Removes the tool tip from \fIwidget\fR.
.PP
If there is more than one tool tip on \fIwidget\fR, only the one covering the entire widget is removed.
-.SH "void QToolTip::remove ( TQWidget * widget, const QRect & rect )\fC [static]\fR"
+.SH "void TQToolTip::remove ( TQWidget * widget, const QRect & rect )\fC [static]\fR"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Removes any tool tip for \fIrect\fR from \fIwidget\fR.
.PP
If there is more than one tool tip on \fIwidget\fR, only the one covering rectangle \fIrect\fR is removed.
-.SH "void QToolTip::setEnabled ( bool enable )\fC [static]\fR"
+.SH "void TQToolTip::setEnabled ( bool enable )\fC [static]\fR"
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
-.SH "void QToolTip::setFont ( const QFont & font )\fC [static]\fR"
+.SH "void TQToolTip::setFont ( const QFont & font )\fC [static]\fR"
Sets the font for all tool tips to \fIfont\fR.
.PP
See also font().
-.SH "void QToolTip::setGloballyEnabled ( bool enable )\fC [static]\fR"
+.SH "void TQToolTip::setGloballyEnabled ( bool enable )\fC [static]\fR"
If \fIenable\fR is TRUE sets all tool tips to be enabled (shown when needed); if \fIenable\fR is FALSE sets all tool tips to be disabled (never shown).
.PP
By default, tool tips are enabled. Note that this function affects all tool tips in the entire application.
.PP
-See also QToolTipGroup::enabled.
-.SH "void QToolTip::setPalette ( const QPalette & palette )\fC [static]\fR"
+See also TQToolTipGroup::enabled.
+.SH "void TQToolTip::setPalette ( const QPalette & palette )\fC [static]\fR"
Sets the palette for all tool tips to \fIpalette\fR.
.PP
See also palette().
-.SH "void QToolTip::setWakeUpDelay ( int i )\fC [static]\fR"
+.SH "void TQToolTip::setWakeUpDelay ( int i )\fC [static]\fR"
Sets the wakeup delay for all tooltips to \fIi\fR milliseconds.
-.SH "TQString QToolTip::textFor ( TQWidget * widget, const QPoint & pos = QPoint ( ) )\fC [static]\fR"
+.SH "TQString TQToolTip::textFor ( TQWidget * widget, const QPoint & pos = QPoint ( ) )\fC [static]\fR"
Returns the tool tip text for \fIwidget\fR at position \fIpos\fR, or TQString::null if there is no tool tip for the given widget and position.
-.SH "void QToolTip::tip ( const QRect & rect, const TQString & text )\fC [protected]\fR"
-Immediately pops up a tip saying \fItext\fR and removes the tip once the cursor moves out of rectangle \fIrect\fR (which is given in the coordinate system of the widget this QToolTip relates to).
+.SH "void TQToolTip::tip ( const QRect & rect, const TQString & text )\fC [protected]\fR"
+Immediately pops up a tip saying \fItext\fR and removes the tip once the cursor moves out of rectangle \fIrect\fR (which is given in the coordinate system of the widget this TQToolTip relates to).
.PP
The tip will not reappear if the cursor moves back; your maybeTip() must reinstate it each time.
-.SH "void QToolTip::tip ( const QRect & rect, const TQString & text, const TQString & groupText )\fC [protected]\fR"
+.SH "void TQToolTip::tip ( const QRect & rect, const TQString & text, const TQString & groupText )\fC [protected]\fR"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
-Immediately pops up a tip saying \fItext\fR and removes that tip once the cursor moves out of rectangle \fIrect\fR (which is given in the coordinate system of the widget this QToolTip relates to). \fIgroupText\fR is the text emitted from the group.
+Immediately pops up a tip saying \fItext\fR and removes that tip once the cursor moves out of rectangle \fIrect\fR (which is given in the coordinate system of the widget this TQToolTip relates to). \fIgroupText\fR is the text emitted from the group.
.PP
The tip will not reappear if the cursor moves back; your maybeTip() must reinstate it each time.
-.SH "void QToolTip::tip ( const QRect & rect, const TQString & text, const QRect & geometry )\fC [protected]\fR"
+.SH "void TQToolTip::tip ( const QRect & rect, const TQString & text, const QRect & geometry )\fC [protected]\fR"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
-Immediately pops up a tip within the rectangle \fIgeometry\fR, saying \fItext\fR and removes the tip once the cursor moves out of rectangle \fIrect\fR. Both rectangles are given in the coordinate system of the widget this QToolTip relates to.
+Immediately pops up a tip within the rectangle \fIgeometry\fR, saying \fItext\fR and removes the tip once the cursor moves out of rectangle \fIrect\fR. Both rectangles are given in the coordinate system of the widget this TQToolTip relates to.
.PP
The tip will not reappear if the cursor moves back; your maybeTip() must reinstate it each time.
.PP
If the tip does not fit inside \fIgeometry\fR, the tip expands.
-.SH "void QToolTip::tip ( const QRect & rect, const TQString & text, const TQString & groupText, const QRect & geometry )\fC [protected]\fR"
+.SH "void TQToolTip::tip ( const QRect & rect, const TQString & text, const TQString & groupText, const QRect & geometry )\fC [protected]\fR"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
-Immediately pops up a tip within the rectangle \fIgeometry\fR, saying \fItext\fR and removes the tip once the cursor moves out of rectangle \fIrect\fR. \fIgroupText\fR is the text emitted from the group. Both rectangles are given in the coordinate system of the widget this QToolTip relates to.
+Immediately pops up a tip within the rectangle \fIgeometry\fR, saying \fItext\fR and removes the tip once the cursor moves out of rectangle \fIrect\fR. \fIgroupText\fR is the text emitted from the group. Both rectangles are given in the coordinate system of the widget this TQToolTip relates to.
.PP
The tip will not reappear if the cursor moves back; your maybeTip() must reinstate it each time.
.PP
If the tip does not fit inside \fIgeometry\fR, the tip expands.
.SH "SEE ALSO"
-.BR http://doc.trolltech.com/ntqtooltip.html
+.BR http://doc.trolltech.com/tqtooltip.html
.BR http://www.trolltech.com/faq/tech.html
.SH COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the