comparison widgets/Thumbwheel.cpp @ 587:4806715f7a19

Seems to be a bad idea to use plain DEBUG symbol on OS/X (system wants it)
author Chris Cannam
date Tue, 14 Jun 2011 15:27:05 +0100
parents f4960f8ce798
children d632a1e87018
comparison
equal deleted inserted replaced
586:1ae54a29e59e 587:4806715f7a19
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 // DEBUG << "Thumbwheel::setMappedValue(" << mappedValue << "): new value is " << newValue << " (visible " << isVisible() << ")" << endl; 145 // SVDEBUG << "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 // DEBUG << "Thumbwheel::setValue(" << value << ") (from " << m_value 172 // SVDEBUG << "Thumbwheel::setValue(" << value << ") (from " << m_value
173 // << ", rotation " << m_rotation << ")" << " (visible " << isVisible() << ")" << 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;
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 // DEBUG << "Thumbwheel::getMappedValue(): value = " << getValue() << ", mappedValue = " << m_mappedValue << endl; 209 // SVDEBUG << "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