diff options
Diffstat (limited to 'tqtinterface/qt4/src/canvas/tqcanvas.cpp')
-rw-r--r-- | tqtinterface/qt4/src/canvas/tqcanvas.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/tqtinterface/qt4/src/canvas/tqcanvas.cpp b/tqtinterface/qt4/src/canvas/tqcanvas.cpp index a827602..7ce0e14 100644 --- a/tqtinterface/qt4/src/canvas/tqcanvas.cpp +++ b/tqtinterface/qt4/src/canvas/tqcanvas.cpp @@ -618,14 +618,14 @@ void TQCanvas::init(int w, int h, int chunksze, int mxclusters) } /*! - Create a TQCanvas with no size. \a tqparent and \a name are passed to + Create a TQCanvas with no size. \a parent and \a name are passed to the TQObject superclass. \warning You \e must call resize() at some time after creation to be able to use the canvas. */ -TQCanvas::TQCanvas( TQObject* tqparent, const char* name ) - : TQObject( tqparent, name ) +TQCanvas::TQCanvas( TQObject* parent, const char* name ) + : TQObject( parent, name ) { init(0,0); } @@ -2890,8 +2890,8 @@ void TQCanvasPixmap::init(const TQPixmap& pixmap, int hx, int hy) (TQPixmap&)*this = pixmap; hotx = hx; hoty = hy; - if( pixmap.tqmask() ) { - TQImage i = tqmask()->convertToImage(); + if( pixmap.mask() ) { + TQImage i = mask()->convertToImage(); collision_mask = new TQImage(i); } else collision_mask = 0; @@ -2955,7 +2955,7 @@ TQCanvasPixmap::~TQCanvasPixmap() image(). The number of pixmaps in the array is returned by count(). - TQCanvasSprite uses an image's tqmask for collision detection. You + TQCanvasSprite uses an image's mask for collision detection. You can change this by reading in a separate set of image masks using readCollisionMasks(). @@ -3101,13 +3101,13 @@ bool TQCanvasPixmapArray::readPixmaps( const TQString& filenamepattern, /*! Reads new collision masks for the array. - By default, TQCanvasSprite uses the image tqmask of a sprite to + By default, TQCanvasSprite uses the image mask of a sprite to detect collisions. Use this function to set your own collision image masks. If count() is 1 \a filename must specify a real filename to read - the tqmask from. If count() is greater than 1, the \a filename must - contain a "%1" that will get replaced by the number of the tqmask to + the mask from. If count() is greater than 1, the \a filename must + contain a "%1" that will get replaced by the number of the mask to be loaded, just like TQCanvasPixmapArray::readPixmaps(). All collision masks must be 1-bit images or this function call @@ -3356,7 +3356,7 @@ TQCanvasPixmap* TQCanvasSprite::imageAdvanced() const /*! Returns the bounding rectangle for the image in the sprite's current frame. This assumes that the images are tightly cropped - (i.e. do not have transtqparent pixels all along a side). + (i.e. do not have transparent pixels all along a side). */ TQRect TQCanvasSprite::boundingRect() const { @@ -3524,13 +3524,13 @@ void TQCanvasSprite::draw(TQPainter& painter) */ /*! - Constructs a TQCanvasView with tqparent \a tqparent, and name \a name, + Constructs a TQCanvasView with parent \a parent, and name \a name, using the widget flags \a f. The canvas view is not associated with a canvas, so you must to call setCanvas() to view a canvas. */ -TQCanvasView::TQCanvasView(TQWidget* tqparent, const char* name, WFlags f) : - TQScrollView(tqparent,name,(WFlags)(f|TQt::WResizeNoErase|TQt::WStaticContents)) +TQCanvasView::TQCanvasView(TQWidget* parent, const char* name, WFlags f) : + TQScrollView(parent,name,(WFlags)(f|TQt::WResizeNoErase|TQt::WStaticContents)) { d = new TQCanvasViewData; viewing = 0; @@ -3541,11 +3541,11 @@ TQCanvasView::TQCanvasView(TQWidget* tqparent, const char* name, WFlags f) : /*! \overload - Constructs a TQCanvasView which views canvas \a canvas, with tqparent - \a tqparent, and name \a name, using the widget flags \a f. + Constructs a TQCanvasView which views canvas \a canvas, with parent + \a parent, and name \a name, using the widget flags \a f. */ -TQCanvasView::TQCanvasView(TQCanvas* canvas, TQWidget* tqparent, const char* name, WFlags f) : - TQScrollView(tqparent,name,(WFlags)(f|TQt::WResizeNoErase|TQt::WStaticContents)) +TQCanvasView::TQCanvasView(TQCanvas* canvas, TQWidget* parent, const char* name, WFlags f) : + TQScrollView(parent,name,(WFlags)(f|TQt::WResizeNoErase|TQt::WStaticContents)) { d = new TQCanvasViewData; viewing = 0; |