Changeset 8678:56a4e5b1cabb in orange


Ignore:
Timestamp:
08/12/11 16:47:27 (3 years ago)
Author:
Noughmad <Noughmad@…>
Branch:
default
Convert:
9ac44b25f17fc23c03f935039936143711e125eb
Message:

Make Point inherit from QGraphicsObject, so that it can be animated.

Location:
source/orangeqt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • source/orangeqt/point.cpp

    r8671 r8678  
    5656} 
    5757 
    58 Point::Point(int symbol, QColor color, int size, QGraphicsItem* parent): QGraphicsItem(parent), 
     58Point::Point(int symbol, QColor color, int size, QGraphicsItem* parent): QGraphicsObject(parent), 
    5959 m_symbol(symbol), 
    6060 m_color(color), 
     
    6565} 
    6666 
    67 Point::Point(QGraphicsItem* parent, QGraphicsScene* scene): QGraphicsItem(parent, scene) 
     67Point::Point(QGraphicsItem* parent, QGraphicsScene* scene): QGraphicsObject(parent) 
    6868{ 
    6969    m_symbol = Ellipse; 
  • source/orangeqt/point.h

    r8669 r8678  
    2020#define POINT_H 
    2121 
    22 #include <QtGui/QGraphicsItem> 
     22#include <QtGui/QGraphicsObject> 
    2323#include <QtCore/QDebug> 
    2424 
     
    4343}; 
    4444 
    45 class Point : public QGraphicsItem 
     45class Point : public QGraphicsObject 
    4646{ 
    47  
     47    Q_OBJECT 
     48     
    4849public: 
    4950    enum DisplayMode 
Note: See TracChangeset for help on using the changeset viewer.