VirtualBox

Changeset 21202 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Jul 3, 2009 1:53:09 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
49506
Message:

FE/Qt4: fix Plastique style

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/QIAdvancedSlider.cpp

    r21194 r21202  
    5454        initStyleOption (&opt);
    5555        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);
    5757        return QStyle::sliderPositionFromValue (opt.minimum, opt.maximum, aVal, available);
    5858    }
     
    6666        opt.subControls = QStyle::SC_All;
    6767
    68         int available = style()->pixelMetric (QStyle::PM_SliderSpaceAvailable, &opt, this);
     68        int available = opt.rect.width() - style()->pixelMetric (QStyle::PM_SliderLength, &opt, this);
    6969        QSize s = size();
    7070
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette