Mercurial > hg > svgui
diff layer/TimeRulerLayer.h @ 1470:696e569ff21b by-id
Further layer updates for ById
author | Chris Cannam |
---|---|
date | Fri, 28 Jun 2019 17:37:22 +0100 |
parents | 05d614f6e46d |
children | e6362cf5ff1d |
line wrap: on
line diff
--- a/layer/TimeRulerLayer.h Thu Jun 27 13:16:25 2019 +0100 +++ b/layer/TimeRulerLayer.h Fri Jun 28 17:37:22 2019 +0100 @@ -34,8 +34,8 @@ void paint(LayerGeometryProvider *v, QPainter &paint, QRect rect) const override; - void setModel(Model *); - const Model *getModel() const override { return m_model; } + void setModel(ModelId); + ModelId getModel() const override { return m_model; } enum LabelHeight { LabelTop, LabelMiddle, LabelBottom }; void setLabelHeight(LabelHeight h) { m_labelHeight = h; } @@ -63,7 +63,7 @@ bool canExistWithoutModel() const override { return true; } protected: - Model *m_model; + ModelId m_model; LabelHeight m_labelHeight; int getDefaultColourHint(bool dark, bool &impose) override;