COPASI API  4.16.103
CQStyledGraphicsItem.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 QSTYLED_GRAPHICS_ITEM
7 #define QSTYLED_GRAPHICS_ITEM
8 
9 #include <QtGui/QGraphicsItemGroup>
10 
12 
13 class CLGraphicalObject;
14 class CLStyle;
15 class CLRenderResolver;
16 class QMouseEvent;
17 class CQStyledGraphicsItem : public QObject, public CQCopasiGraphicsItem, public QGraphicsItemGroup
18 {
19  Q_OBJECT
20 public:
21  CQStyledGraphicsItem(const CLGraphicalObject* go, const CLRenderResolver* resolver = NULL);
22  virtual ~CQStyledGraphicsItem();
23 protected:
24  void mouseReleaseEvent(QGraphicsSceneMouseEvent* event);
25  virtual QVariant itemChange(GraphicsItemChange change, const QVariant &value);
26 
27  bool mWasMoved;
28 };
29 
30 #endif
CQStyledGraphicsItem(const CLGraphicalObject *go, const CLRenderResolver *resolver=NULL)
void mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
virtual QVariant itemChange(GraphicsItemChange change, const QVariant &value)