Changeset 21202 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Jul 3, 2009 1:53:09 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 49506
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/QIAdvancedSlider.cpp
r21194 r21202 54 54 initStyleOption (&opt); 55 55 opt.subControls = QStyle::SC_All; 56 int available = style()->pixelMetric (QStyle::PM_SliderSpaceAvailable, &opt, this);56 int available = opt.rect.width() - style()->pixelMetric (QStyle::PM_SliderLength, &opt, this); 57 57 return QStyle::sliderPositionFromValue (opt.minimum, opt.maximum, aVal, available); 58 58 } … … 66 66 opt.subControls = QStyle::SC_All; 67 67 68 int available = style()->pixelMetric (QStyle::PM_SliderSpaceAvailable, &opt, this);68 int available = opt.rect.width() - style()->pixelMetric (QStyle::PM_SliderLength, &opt, this); 69 69 QSize s = size(); 70 70
Note:
See TracChangeset
for help on using the changeset viewer.