Gui: [skip ci] wheel event filter for combo boxes

This commit is contained in:
wmayer
2020-05-22 10:42:38 +02:00
parent e6d64affcb
commit b1f41dd87e
3 changed files with 31 additions and 0 deletions

View File

@@ -1976,6 +1976,12 @@ void Application::runApplication(void)
if (size >= 16) // must not be lower than this
mw.setIconSize(QSize(size,size));
// filter wheel events for combo boxes
if (hGrp->GetBool("ComboBoxWheelEventFilter", false)) {
WheelEventFilter* filter = new WheelEventFilter(&mainApp);
mainApp.installEventFilter(filter);
}
#if defined(HAVE_QT5_OPENGL)
{
QWindow window;