Mercurial > hg > svgui
comparison layer/TimeRulerLayer.h @ 916:94e4952a6774 osx-retina
Start trying to introduce LayerGeometryProvider as proxyable interface for View methods that the Layer wants to use
author | Chris Cannam |
---|---|
date | Tue, 17 Mar 2015 15:05:25 +0000 |
parents | b66fb15de477 |
children | 4fe7a09be0fe |
comparison
equal
deleted
inserted
replaced
915:f6d9f28f37cb | 916:94e4952a6774 |
---|---|
30 Q_OBJECT | 30 Q_OBJECT |
31 | 31 |
32 public: | 32 public: |
33 TimeRulerLayer(); | 33 TimeRulerLayer(); |
34 | 34 |
35 virtual void paint(View *v, QPainter &paint, QRect rect) const; | 35 virtual void paint(LayerGeometryProvider *v, QPainter &paint, QRect rect) const; |
36 | 36 |
37 void setModel(Model *); | 37 void setModel(Model *); |
38 virtual const Model *getModel() const { return m_model; } | 38 virtual const Model *getModel() const { return m_model; } |
39 | 39 |
40 enum LabelHeight { LabelTop, LabelMiddle, LabelBottom }; | 40 enum LabelHeight { LabelTop, LabelMiddle, LabelBottom }; |