1
/***************************************************************************
2
canvbox.cpp - description
5
copyright : (C) 2002 by Alexander Dymo
6
email : cloudtemple@mksat.net
7
***************************************************************************/
9
/***************************************************************************
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU Library General Public License as *
13
* published by the Free Software Foundation; either version 2 of the *
14
* License, or (at your option) any later version. *
16
***************************************************************************/
23
CanvasBox::~CanvasBox()
27
void CanvasBox::registerAs(int type)
29
if (((MyCanvas*)canvas())->plugin()) {
30
(((MyCanvas*)canvas())->plugin())->newCanvasBox(type,this);
34
void CanvasBox::scale(int scale)
36
setSize(width()*scale, height()*scale);
39
void CanvasBox::draw(QPainter &painter)
41
QCanvasRectangle::draw(painter);