summaryrefslogtreecommitdiffstats
path: root/doc/man/man3/tqmouseevent.3qt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/man/man3/tqmouseevent.3qt')
-rw-r--r--doc/man/man3/tqmouseevent.3qt16
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/man/man3/tqmouseevent.3qt b/doc/man/man3/tqmouseevent.3qt
index 134f3c25..9728913f 100644
--- a/doc/man/man3/tqmouseevent.3qt
+++ b/doc/man/man3/tqmouseevent.3qt
@@ -16,16 +16,16 @@ Inherits QEvent.
.SS "Public Members"
.in +1c
.ti -1c
-.BI "\fBQMouseEvent\fR ( Type type, const QPoint & pos, int button, int state )"
+.BI "\fBQMouseEvent\fR ( Type type, const TQPoint & pos, int button, int state )"
.br
.ti -1c
-.BI "\fBQMouseEvent\fR ( Type type, const QPoint & pos, const QPoint & globalPos, int button, int state )"
+.BI "\fBQMouseEvent\fR ( Type type, const TQPoint & pos, const TQPoint & globalPos, int button, int state )"
.br
.ti -1c
-.BI "const QPoint & \fBpos\fR () const"
+.BI "const TQPoint & \fBpos\fR () const"
.br
.ti -1c
-.BI "const QPoint & \fBglobalPos\fR () const"
+.BI "const TQPoint & \fBglobalPos\fR () const"
.br
.ti -1c
.BI "int \fBx\fR () const"
@@ -77,7 +77,7 @@ The event handlers TQWidget::mousePressEvent(), TQWidget::mouseReleaseEvent(), T
.PP
See also TQWidget::mouseTracking, TQWidget::grabMouse(), QCursor::pos(), and Event Classes.
.SH MEMBER FUNCTION DOCUMENTATION
-.SH "QMouseEvent::QMouseEvent ( Type type, const QPoint & pos, int button, int state )"
+.SH "QMouseEvent::QMouseEvent ( Type type, const TQPoint & pos, int button, int state )"
Constructs a mouse event object.
.PP
The \fItype\fR parameter must be one of QEvent::MouseButtonPress, QEvent::MouseButtonRelease, QEvent::MouseButtonDblClick or QEvent::MouseMove.
@@ -85,7 +85,7 @@ The \fItype\fR parameter must be one of QEvent::MouseButtonPress, QEvent::MouseB
The \fIpos\fR parameter specifies the position relative to the receiving widget. \fIbutton\fR specifies the button that caused the event, which should be TQt::NoButton (0), if \fItype\fR is MouseMove. \fIstate\fR is the ButtonState at the time of the event.
.PP
The globalPos() is initialized to QCursor::pos(), which may not be appropriate. Use the other constructor to specify the global position explicitly.
-.SH "QMouseEvent::QMouseEvent ( Type type, const QPoint & pos, const QPoint & globalPos, int button, int state )"
+.SH "QMouseEvent::QMouseEvent ( Type type, const TQPoint & pos, const TQPoint & globalPos, int button, int state )"
Constructs a mouse event object.
.PP
The \fItype\fR parameter must be QEvent::MouseButtonPress, QEvent::MouseButtonRelease, QEvent::MouseButtonDblClick or QEvent::MouseMove.
@@ -110,7 +110,7 @@ See also state() and TQt::ButtonState.
.PP
Examples:
.)l dclock/dclock.cpp, life/life.cpp, and t14/cannon.cpp.
-.SH "const QPoint & QMouseEvent::globalPos () const"
+.SH "const TQPoint & QMouseEvent::globalPos () const"
Returns the global position of the mouse pointer \fIat the time of the event\fR. This is important on asynchronous window systems like X11. Whenever you move your widgets around in response to mouse events, globalPos() may differ a lot from the current pointer position QCursor::pos(), and from TQWidget::mapToGlobal( pos() ).
.PP
See also globalX() and globalY().
@@ -134,7 +134,7 @@ The accept flag is set by default.
See also accept().
.SH "bool QMouseEvent::isAccepted () const"
Returns TRUE if the receiver of the event wants to keep the key; otherwise returns FALSE.
-.SH "const QPoint & QMouseEvent::pos () const"
+.SH "const TQPoint & QMouseEvent::pos () const"
Returns the position of the mouse pointer relative to the widget that received the event.
.PP
If you move the widget as a result of the mouse event, use the global position returned by globalPos() to avoid a shaking motion.