rock_widget_collection  0.1
RectangleItem.cc
Go to the documentation of this file.
1 /*
2  * File: RectangleItem.cc
3  * Author: blueck
4  *
5  * Created on 29. Juni 2010, 10:34
6  */
7 
8 #include <QtGui/qpainter.h>
9 
10 #include "RectangleItem.h"
11 
12 RectangleItem::RectangleItem(int posX, int posY, int groupNr, const QColor &color, int width, int height)
13  : FillItem(posX, posY, groupNr, color)
14 {
15  this->width = width;
16  this->height = height;
17 }
18 
19 void RectangleItem::draw(QPainter* painter, QRectF &source, QRectF &target)
20 {
21  FillItem::draw(painter,source,target);
22  painter->drawRect(posX, posY, width, height);
23 }
24 
25 
int posY
Definition: DrawItem.h:182
int posX
Definition: DrawItem.h:180
RectangleItem(int posX, int posY, int groupNr, const QColor &color, int width, int height)
void draw(QPainter *painter, QRectF &source, QRectF &target)
Definition: FillItem.cc:26
void draw(QPainter *painter, QRectF &source, QRectF &target)