Mercurial > hg > svgui
comparison layer/TimeValueLayer.h @ 81:b9f71b8ae21e
* Ensure consistent ordering of layer text labels
* Fix erroneous SR mismatch warning when adding a wave-file model when
no other wave-file model is present (only models that don't assert any
particular playback samplerate)
author | Chris Cannam |
---|---|
date | Thu, 27 Apr 2006 11:49:34 +0000 |
parents | 19bf27e4fb29 |
children | 4b98bda7e94d |
comparison
equal
deleted
inserted
replaced
80:d99d67a5b93a | 81:b9f71b8ae21e |
---|---|
101 virtual bool isLayerEditable() const { return true; } | 101 virtual bool isLayerEditable() const { return true; } |
102 | 102 |
103 virtual int getCompletion() const { return m_model->getCompletion(); } | 103 virtual int getCompletion() const { return m_model->getCompletion(); } |
104 | 104 |
105 virtual bool needsTextLabelHeight() const { | 105 virtual bool needsTextLabelHeight() const { |
106 return m_plotStyle == PlotSegmentation; | 106 return m_plotStyle == PlotSegmentation && m_model->hasTextLabels(); |
107 } | 107 } |
108 | 108 |
109 virtual bool getValueExtents(float &min, float &max, QString &unit) const; | 109 virtual bool getValueExtents(float &min, float &max, QString &unit) const; |
110 | 110 |
111 virtual QString toXmlString(QString indent = "", | 111 virtual QString toXmlString(QString indent = "", |