CustomIconStyle.h 401 B

1234567891011121314151617181920212223
  1. #ifndef CUSTOMICONSTYLE_H
  2. #define CUSTOMICONSTYLE_H
  3. #include <QProxyStyle>
  4. class CustomIconStyle : public QProxyStyle
  5. {
  6. Q_OBJECT
  7. public:
  8. CustomIconStyle();
  9. ~CustomIconStyle();
  10. void SetCustomSize(int);
  11. protected:
  12. virtual int pixelMetric(PixelMetric metric, const QStyleOption * option, const QWidget * widget) const;
  13. private:
  14. int mSize;
  15. };
  16. #endif // CUSTOMICONSTYLE_H