diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-07-15 19:08:22 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-07-18 09:31:41 +0900 |
commit | a30f5359f03c3017fa19a6770fab32d25d22cb87 (patch) | |
tree | cb365dd7a1c3666e3f972c6cad04be7b8e846cba /doc/man/man3/tqcanvas.3qt | |
parent | 25ad1267da6916e738a126ff5a9b41cd686adfc6 (diff) | |
download | tqt3-a30f5359f03c3017fa19a6770fab32d25d22cb87.tar.gz tqt3-a30f5359f03c3017fa19a6770fab32d25d22cb87.zip |
Rename graphics class nt* related files to equivalent tq* (part 1)
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/man/man3/tqcanvas.3qt')
-rw-r--r-- | doc/man/man3/tqcanvas.3qt | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/man/man3/tqcanvas.3qt b/doc/man/man3/tqcanvas.3qt index 4eabda1c9..5e84ff8c7 100644 --- a/doc/man/man3/tqcanvas.3qt +++ b/doc/man/man3/tqcanvas.3qt @@ -115,7 +115,7 @@ Inherits TQObject. .BI "TQCanvasItemList \fBcollisions\fR ( const QPointArray & chunklist, const TQCanvasItem * item, bool exact ) const" .br .ti -1c -.BI "void \fBdrawArea\fR ( const QRect & clip, QPainter * painter, bool dbuf = FALSE )" +.BI "void \fBdrawArea\fR ( const QRect & clip, TQPainter * painter, bool dbuf = FALSE )" .br .ti -1c .BI "virtual void \fBsetAdvancePeriod\fR ( int ms )" @@ -145,10 +145,10 @@ Inherits TQObject. .SS "Protected Members" .in +1c .ti -1c -.BI "virtual void \fBdrawBackground\fR ( QPainter & painter, const QRect & clip )" +.BI "virtual void \fBdrawBackground\fR ( TQPainter & painter, const QRect & clip )" .br .ti -1c -.BI "virtual void \fBdrawForeground\fR ( QPainter & painter, const QRect & clip )" +.BI "virtual void \fBdrawForeground\fR ( TQPainter & painter, const QRect & clip )" .br .in -1c .SH DESCRIPTION @@ -206,7 +206,7 @@ The foreground is normally nothing, but if you reimplement drawForeground(), you .PP Areas can be set as changed with setChanged() and set unchanged with setUnchanged(). The entire canvas can be set as changed with setAllChanged(). A list of all the items on the canvas is returned by allItems(). .PP -An area can be copied (painted) to a QPainter with drawArea(). +An area can be copied (painted) to a TQPainter with drawArea(). .PP If the canvas is resized it emits the resized() signal. .PP @@ -273,7 +273,7 @@ This is an overloaded member function, provided for convenience. It behaves esse Returns a list of canvas items which intersect with the chunks listed in \fIchunklist\fR, excluding \fIitem\fR. If \fIexact\fR is TRUE, only those which actually collide with \fIitem\fR are returned; otherwise canvas items are included just for being in the chunks. .PP This is a utility function mainly used to implement the simpler TQCanvasItem::collisions() function. -.SH "void TQCanvas::drawArea ( const QRect & clip, QPainter * painter, bool dbuf = FALSE )" +.SH "void TQCanvas::drawArea ( const QRect & clip, TQPainter * painter, bool dbuf = FALSE )" Paints all canvas items that are in the area \fIclip\fR to \fIpainter\fR, using double-buffering if \fIdbuf\fR is TRUE. .PP e.g. to print the canvas to a printer: @@ -284,7 +284,7 @@ e.g. to print the canvas to a printer: .br if ( pr.setup() ) { .br - QPainter p(&pr); + TQPainter p(&pr); .br canvas.drawArea( canvas.rect(), &p ); .br @@ -293,13 +293,13 @@ e.g. to print the canvas to a printer: .fi .PP Example: canvas/canvas.cpp. -.SH "void TQCanvas::drawBackground ( QPainter & painter, const QRect & clip )\fC [virtual protected]\fR" +.SH "void TQCanvas::drawBackground ( TQPainter & painter, const QRect & clip )\fC [virtual protected]\fR" This virtual function is called for all updates of the canvas. It renders any background graphics using the painter \fIpainter\fR, in the area \fIclip\fR. If the canvas has a background pixmap or a tiled background, that graphic is used, otherwise the canvas is cleared using the background color. .PP If the graphics for an area change, you must explicitly call setChanged(const QRect&) for the result to be visible when update() is next called. .PP See also setBackgroundColor(), setBackgroundPixmap(), and setTiles(). -.SH "void TQCanvas::drawForeground ( QPainter & painter, const QRect & clip )\fC [virtual protected]\fR" +.SH "void TQCanvas::drawForeground ( TQPainter & painter, const QRect & clip )\fC [virtual protected]\fR" This virtual function is called for all updates of the canvas. It renders any foreground graphics using the painter \fIpainter\fR, in the area \fIclip\fR. .PP If the graphics for an area change, you must explicitly call setChanged(const QRect&) for the result to be visible when update() is next called. |