Mercurial > hg > svgui
comparison widgets/Thumbwheel.cpp @ 585:f4960f8ce798 debug-output
Convert many cerrs to DEBUGs
author | Chris Cannam |
---|---|
date | Mon, 16 May 2011 17:19:25 +0100 |
parents | 5930f2b0b1d2 |
children | 4806715f7a19 |
comparison
equal
deleted
inserted
replaced
584:1fe7951a61e8 | 585:f4960f8ce798 |
---|---|
140 if (m_rangeMapper) { | 140 if (m_rangeMapper) { |
141 int newValue = m_rangeMapper->getPositionForValue(mappedValue); | 141 int newValue = m_rangeMapper->getPositionForValue(mappedValue); |
142 bool changed = (m_mappedValue != mappedValue); | 142 bool changed = (m_mappedValue != mappedValue); |
143 m_mappedValue = mappedValue; | 143 m_mappedValue = mappedValue; |
144 m_noMappedUpdate = true; | 144 m_noMappedUpdate = true; |
145 // std::cerr << "Thumbwheel::setMappedValue(" << mappedValue << "): new value is " << newValue << " (visible " << isVisible() << ")" << std::endl; | 145 // DEBUG << "Thumbwheel::setMappedValue(" << mappedValue << "): new value is " << newValue << " (visible " << isVisible() << ")" << endl; |
146 if (newValue != getValue()) { | 146 if (newValue != getValue()) { |
147 setValue(newValue); | 147 setValue(newValue); |
148 changed = true; | 148 changed = true; |
149 m_cache = QImage(); | 149 m_cache = QImage(); |
150 } | 150 } |
167 } | 167 } |
168 | 168 |
169 void | 169 void |
170 Thumbwheel::setValue(int value) | 170 Thumbwheel::setValue(int value) |
171 { | 171 { |
172 // std::cerr << "Thumbwheel::setValue(" << value << ") (from " << m_value | 172 // DEBUG << "Thumbwheel::setValue(" << value << ") (from " << m_value |
173 // << ", rotation " << m_rotation << ")" << " (visible " << isVisible() << ")" << std::endl; | 173 // << ", rotation " << m_rotation << ")" << " (visible " << isVisible() << ")" << endl; |
174 | 174 |
175 if (m_value != value) { | 175 if (m_value != value) { |
176 | 176 |
177 m_atDefault = false; | 177 m_atDefault = false; |
178 | 178 |
204 | 204 |
205 float | 205 float |
206 Thumbwheel::getMappedValue() const | 206 Thumbwheel::getMappedValue() const |
207 { | 207 { |
208 if (m_rangeMapper) { | 208 if (m_rangeMapper) { |
209 // std::cerr << "Thumbwheel::getMappedValue(): value = " << getValue() << ", mappedValue = " << m_mappedValue << std::endl; | 209 // DEBUG << "Thumbwheel::getMappedValue(): value = " << getValue() << ", mappedValue = " << m_mappedValue << endl; |
210 return m_mappedValue; | 210 return m_mappedValue; |
211 } | 211 } |
212 return getValue(); | 212 return getValue(); |
213 } | 213 } |
214 | 214 |