COPASI API  4.16.103
CQRoundedRect.h
Go to the documentation of this file.
1 // Copyright (C) 2013 by Pedro Mendes, Virginia Tech Intellectual
2 // Properties, Inc., University of Heidelberg, and The University
3 // of Manchester.
4 // All rights reserved.
5 
6 #ifndef QROUNDED_RECT
7 #define QROUNDED_RECT
8 
9 #include <QtGui/QGraphicsRectItem>
10 #include <QtGui/QStyleOptionGraphicsItem>
11 
12 class QPainter;
13 
14 class CQRoundedRect : public QGraphicsRectItem
15 {
16 public:
17  CQRoundedRect(qreal x, qreal y, qreal w, qreal h, qreal rx = 0, qreal ry = 0);
18  virtual ~CQRoundedRect();
19 protected:
20  virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option = new QStyleOptionGraphicsItem() , QWidget *widget = 0);
21 
22  qreal mRx;
23  qreal mRy;
24 };
25 
26 #endif
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option=new QStyleOptionGraphicsItem(), QWidget *widget=0)
virtual ~CQRoundedRect()
CQRoundedRect(qreal x, qreal y, qreal w, qreal h, qreal rx=0, qreal ry=0)