comparison layer/WaveformLayer.h @ 156:b32282fefccd

* Tidy up inheritance hierarchy of model classes -- remove ZoomConstraint as a base class (make it a member instead) and remove virtual inheritances of QObject (no longer necessary).
author Chris Cannam
date Thu, 05 Oct 2006 11:03:06 +0000
parents 9e6b3e239b9d
children 53b9c7656798
comparison
equal deleted inserted replaced
155:8c730f49b9b3 156:b32282fefccd
33 33
34 public: 34 public:
35 WaveformLayer(); 35 WaveformLayer();
36 ~WaveformLayer(); 36 ~WaveformLayer();
37 37
38 virtual const ZoomConstraint *getZoomConstraint() const { return m_model; } 38 virtual const ZoomConstraint *getZoomConstraint() const {
39 return m_model ? m_model->getZoomConstraint() : 0;
40 }
39 virtual const Model *getModel() const { return m_model; } 41 virtual const Model *getModel() const { return m_model; }
40 virtual void paint(View *v, QPainter &paint, QRect rect) const; 42 virtual void paint(View *v, QPainter &paint, QRect rect) const;
41 43
42 virtual QString getFeatureDescription(View *v, QPoint &) const; 44 virtual QString getFeatureDescription(View *v, QPoint &) const;
43 45