e33b7d2dab
Adds a new ProxyStyle, OBSIgnoreWheelProxyStyle, and applies it to the entire program. This style sets a StyleHint to disable mouse wheel scrolling on QComboBoxes. The existing OBSProxyStyle, which is used only for the context bar, has been renamed accordingly.
17 lines
451 B
C++
17 lines
451 B
C++
#pragma once
|
|
|
|
#include <QProxyStyle>
|
|
|
|
class OBSIgnoreWheelProxyStyle : public QProxyStyle {
|
|
public:
|
|
int styleHint(StyleHint hint, const QStyleOption *option,
|
|
const QWidget *widget,
|
|
QStyleHintReturn *returnData) const override;
|
|
};
|
|
|
|
class OBSContextBarProxyStyle : public OBSIgnoreWheelProxyStyle {
|
|
public:
|
|
QPixmap generatedIconPixmap(QIcon::Mode iconMode, const QPixmap &pixmap,
|
|
const QStyleOption *option) const override;
|
|
};
|