COPASI API  4.16.103
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
CQRoundedRect Class Reference

#include <CQRoundedRect.h>

Inheritance diagram for CQRoundedRect:
Inheritance graph
[legend]
Collaboration diagram for CQRoundedRect:
Collaboration graph
[legend]

Public Member Functions

 CQRoundedRect (qreal x, qreal y, qreal w, qreal h, qreal rx=0, qreal ry=0)
 
virtual ~CQRoundedRect ()
 

Protected Member Functions

virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option=new QStyleOptionGraphicsItem(), QWidget *widget=0)
 

Protected Attributes

qreal mRx
 
qreal mRy
 

Detailed Description

Definition at line 14 of file CQRoundedRect.h.

Constructor & Destructor Documentation

CQRoundedRect::CQRoundedRect ( qreal  x,
qreal  y,
qreal  w,
qreal  h,
qreal  rx = 0,
qreal  ry = 0 
)

Definition at line 12 of file CQRoundedRect.cpp.

13  : QGraphicsRectItem(x, y, w, h)
14  , mRx(rx)
15  , mRy(ry)
16 {
17 }
CQRoundedRect::~CQRoundedRect ( )
virtual

Definition at line 19 of file CQRoundedRect.cpp.

20 {
21 }

Member Function Documentation

void CQRoundedRect::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option = new QStyleOptionGraphicsItem(),
QWidget *  widget = 0 
)
protectedvirtual

Definition at line 23 of file CQRoundedRect.cpp.

References mRx, and mRy.

24 {
25  painter->save();
26  painter->setPen(pen());
27  painter->setBrush(brush());
28  painter->drawRoundedRect(rect(), mRx, mRy);
29  painter->restore();
30 }

Member Data Documentation

qreal CQRoundedRect::mRx
protected

Definition at line 22 of file CQRoundedRect.h.

Referenced by paint().

qreal CQRoundedRect::mRy
protected

Definition at line 23 of file CQRoundedRect.h.

Referenced by paint().


The documentation for this class was generated from the following files: