Ignore:
Timestamp:
Aug 31, 2016, 5:31:04 PM (9 years ago)
Author:
Silvan Scherrer
Message:

smplayer: update trunk to version 16.8.0

Location:
smplayer/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • smplayer/trunk

  • smplayer/trunk/src/mpcgui/mpcstyles.h

    r176 r181  
    2020#define MPC_STYLES_H
    2121
    22 #include <QWindowsStyle>
     22#include <QProxyStyle>
    2323#include <QStyleOptionToolBar>
     24#include <QStyleFactory>
    2425
    2526enum QSliderDirection { SlUp, SlDown, SlLeft, SlRight };
    2627
    27 class MpcToolbarStyle : public QWindowsStyle
     28class MpcToolbarStyle : public QProxyStyle
    2829{
    2930    Q_OBJECT
    3031
    3132public:
    32     MpcToolbarStyle() {};
     33    MpcToolbarStyle() { setBaseStyle(QStyleFactory::create("windows")); };
    3334    void drawControl(ControlElement control, const QStyleOption *option,
    3435                      QPainter *painter, const QWidget *widget) const;
    3536};
    3637
    37 class MpcTimeSlideStyle : public QWindowsStyle
     38class MpcTimeSlideStyle : public QProxyStyle
    3839{
    3940    Q_OBJECT
    4041
    4142public:
    42     MpcTimeSlideStyle() {};
     43    MpcTimeSlideStyle() { setBaseStyle(QStyleFactory::create("windows")); };
    4344    void drawComplexControl(ComplexControl cc, const QStyleOptionComplex *opt,
    4445                                       QPainter *p, const QWidget *widget) const;
    4546};
    4647
    47 class MpcVolumeSlideStyle : public QWindowsStyle
     48class MpcVolumeSlideStyle : public QProxyStyle
    4849{
    4950    Q_OBJECT
    5051
    5152public:
    52     MpcVolumeSlideStyle() {};
     53    MpcVolumeSlideStyle() { setBaseStyle(QStyleFactory::create("windows")); };
    5354    void drawComplexControl(ComplexControl cc, const QStyleOptionComplex *opt,
    5455                                       QPainter *p, const QWidget *widget) const;
Note: See TracChangeset for help on using the changeset viewer.