Changeset 21437 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Jul 9, 2009 12:27:58 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 49833
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/QIAdvancedSlider.cpp
r21433 r21437 269 269 { 270 270 float l2 = log ((float)val)/log (2.0); 271 int newVal = pow ((float)2, (int)qRound (l2)); /* The value to snap on */271 int newVal = (int) pow ((float)2, (int)qRound (l2)); /* The value to snap on */ 272 272 int pos = mSlider->positionForValue (val); /* Get the relative screen pos for the original value */ 273 273 int newPos = mSlider->positionForValue (newVal); /* Get the relative screen pos for the snap value */
Note:
See TracChangeset
for help on using the changeset viewer.