2018-08-23 20:43:44 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <QProxyStyle>
|
|
|
|
|
|
2022-03-26 02:19:23 +01:00
|
|
|
class OBSIgnoreWheelProxyStyle : public QProxyStyle {
|
|
|
|
|
public:
|
|
|
|
|
int styleHint(StyleHint hint, const QStyleOption *option,
|
|
|
|
|
const QWidget *widget,
|
|
|
|
|
QStyleHintReturn *returnData) const override;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class OBSContextBarProxyStyle : public OBSIgnoreWheelProxyStyle {
|
2018-08-23 20:43:44 -05:00
|
|
|
public:
|
|
|
|
|
QPixmap generatedIconPixmap(QIcon::Mode iconMode, const QPixmap &pixmap,
|
|
|
|
|
const QStyleOption *option) const override;
|
|
|
|
|
};
|