Mercurial > hg > svgui
comparison widgets/Thumbwheel.cpp @ 205:6969f21da18a
* remove some debug and some obsolete moc file includes
author | Chris Cannam |
---|---|
date | Mon, 26 Feb 2007 14:55:08 +0000 |
parents | fcc043f75c41 |
children | e6d0b097d102 |
comparison
equal
deleted
inserted
replaced
204:942cfa1df966 | 205:6969f21da18a |
---|---|
139 if (m_rangeMapper) { | 139 if (m_rangeMapper) { |
140 int newValue = m_rangeMapper->getPositionForValue(mappedValue); | 140 int newValue = m_rangeMapper->getPositionForValue(mappedValue); |
141 bool changed = (m_mappedValue != mappedValue); | 141 bool changed = (m_mappedValue != mappedValue); |
142 m_mappedValue = mappedValue; | 142 m_mappedValue = mappedValue; |
143 m_noMappedUpdate = true; | 143 m_noMappedUpdate = true; |
144 std::cerr << "Thumbwheel::setMappedValue(" << mappedValue << "): new value is " << newValue << " (visible " << isVisible() << ")" << std::endl; | 144 // std::cerr << "Thumbwheel::setMappedValue(" << mappedValue << "): new value is " << newValue << " (visible " << isVisible() << ")" << std::endl; |
145 if (newValue != getValue()) { | 145 if (newValue != getValue()) { |
146 setValue(newValue); | 146 setValue(newValue); |
147 changed = true; | 147 changed = true; |
148 } | 148 } |
149 if (changed) emit valueChanged(newValue); | 149 if (changed) emit valueChanged(newValue); |
164 } | 164 } |
165 | 165 |
166 void | 166 void |
167 Thumbwheel::setValue(int value) | 167 Thumbwheel::setValue(int value) |
168 { | 168 { |
169 std::cerr << "Thumbwheel::setValue(" << value << ") (from " << m_value | 169 // std::cerr << "Thumbwheel::setValue(" << value << ") (from " << m_value |
170 << ", rotation " << m_rotation << ")" << " (visible " << isVisible() << ")" << std::endl; | 170 // << ", rotation " << m_rotation << ")" << " (visible " << isVisible() << ")" << std::endl; |
171 | 171 |
172 if (m_value != value) { | 172 if (m_value != value) { |
173 | 173 |
174 m_atDefault = false; | 174 m_atDefault = false; |
175 | 175 |
199 | 199 |
200 float | 200 float |
201 Thumbwheel::getMappedValue() const | 201 Thumbwheel::getMappedValue() const |
202 { | 202 { |
203 if (m_rangeMapper) { | 203 if (m_rangeMapper) { |
204 std::cerr << "Thumbwheel::getMappedValue(): value = " << getValue() << ", mappedValue = " << m_mappedValue << std::endl; | 204 // std::cerr << "Thumbwheel::getMappedValue(): value = " << getValue() << ", mappedValue = " << m_mappedValue << std::endl; |
205 return m_mappedValue; | 205 return m_mappedValue; |
206 } | 206 } |
207 return getValue(); | 207 return getValue(); |
208 } | 208 } |
209 | 209 |