Mercurial > hg > svgui
comparison layer/Colour3DPlotLayer.cpp @ 823:2d4af227fd32
Fix some errant signals (the modelChanged with args are now modelChangedWithin)
author | Chris Cannam |
---|---|
date | Thu, 17 Jul 2014 14:50:31 +0100 |
parents | 6c52314b31b0 |
children | db0759e4c6c3 |
comparison
equal
deleted
inserted
replaced
818:fd95308b5d3f | 823:2d4af227fd32 |
---|---|
76 if (!m_model || !m_model->isOK()) return; | 76 if (!m_model || !m_model->isOK()) return; |
77 | 77 |
78 connectSignals(m_model); | 78 connectSignals(m_model); |
79 | 79 |
80 connect(m_model, SIGNAL(modelChanged()), this, SLOT(modelChanged())); | 80 connect(m_model, SIGNAL(modelChanged()), this, SLOT(modelChanged())); |
81 connect(m_model, SIGNAL(modelChanged(int, int)), | 81 connect(m_model, SIGNAL(modelChangedWithin(int, int)), |
82 this, SLOT(modelChanged(int, int))); | 82 this, SLOT(modelChangedWithin(int, int))); |
83 | 83 |
84 m_peakResolution = 256; | 84 m_peakResolution = 256; |
85 if (model->getResolution() > 512) { | 85 if (model->getResolution() > 512) { |
86 m_peakResolution = 16; | 86 m_peakResolution = 16; |
87 } else if (model->getResolution() > 128) { | 87 } else if (model->getResolution() > 128) { |
133 } | 133 } |
134 cacheInvalid(); | 134 cacheInvalid(); |
135 } | 135 } |
136 | 136 |
137 void | 137 void |
138 Colour3DPlotLayer::modelChanged(int startFrame, int endFrame) | 138 Colour3DPlotLayer::modelChangedWithin(int startFrame, int endFrame) |
139 { | 139 { |
140 if (!m_colourScaleSet && m_colourScale == LinearScale) { | 140 if (!m_colourScaleSet && m_colourScale == LinearScale) { |
141 if (m_model && m_model->getWidth() > 50) { | 141 if (m_model && m_model->getWidth() > 50) { |
142 if (m_model->shouldUseLogValueScale()) { | 142 if (m_model->shouldUseLogValueScale()) { |
143 setColourScale(LogScale); | 143 setColourScale(LogScale); |