UI: Disable wheel scrolling on QComboBoxes

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.
This commit is contained in:
gxalpha
2022-03-26 02:19:23 +01:00
committed by Jim
parent f2b049c0e7
commit e33b7d2dab
4 changed files with 28 additions and 5 deletions

View File

@@ -257,7 +257,7 @@ OBSBasic::OBSBasic(QWidget *parent)
ui->setupUi(this);
ui->previewDisabledWidget->setVisible(false);
ui->contextContainer->setStyle(new OBSProxyStyle);
ui->contextContainer->setStyle(new OBSContextBarProxyStyle);
ui->broadcastButton->setVisible(false);
startingDockLayout = saveState();