Changeset 181 for smplayer/trunk/src/mpcgui/mpcstyles.h
- Timestamp:
- Aug 31, 2016, 5:31:04 PM (9 years ago)
- Location:
- smplayer/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
smplayer/trunk
- Property svn:mergeinfo changed
/smplayer/vendor/current merged: 179
- Property svn:mergeinfo changed
-
smplayer/trunk/src/mpcgui/mpcstyles.h
r176 r181 20 20 #define MPC_STYLES_H 21 21 22 #include <Q WindowsStyle>22 #include <QProxyStyle> 23 23 #include <QStyleOptionToolBar> 24 #include <QStyleFactory> 24 25 25 26 enum QSliderDirection { SlUp, SlDown, SlLeft, SlRight }; 26 27 27 class MpcToolbarStyle : public Q WindowsStyle28 class MpcToolbarStyle : public QProxyStyle 28 29 { 29 30 Q_OBJECT 30 31 31 32 public: 32 MpcToolbarStyle() { };33 MpcToolbarStyle() { setBaseStyle(QStyleFactory::create("windows")); }; 33 34 void drawControl(ControlElement control, const QStyleOption *option, 34 35 QPainter *painter, const QWidget *widget) const; 35 36 }; 36 37 37 class MpcTimeSlideStyle : public Q WindowsStyle38 class MpcTimeSlideStyle : public QProxyStyle 38 39 { 39 40 Q_OBJECT 40 41 41 42 public: 42 MpcTimeSlideStyle() { };43 MpcTimeSlideStyle() { setBaseStyle(QStyleFactory::create("windows")); }; 43 44 void drawComplexControl(ComplexControl cc, const QStyleOptionComplex *opt, 44 45 QPainter *p, const QWidget *widget) const; 45 46 }; 46 47 47 class MpcVolumeSlideStyle : public Q WindowsStyle48 class MpcVolumeSlideStyle : public QProxyStyle 48 49 { 49 50 Q_OBJECT 50 51 51 52 public: 52 MpcVolumeSlideStyle() { };53 MpcVolumeSlideStyle() { setBaseStyle(QStyleFactory::create("windows")); }; 53 54 void drawComplexControl(ComplexControl cc, const QStyleOptionComplex *opt, 54 55 QPainter *p, const QWidget *widget) const;
Note:
See TracChangeset
for help on using the changeset viewer.