diff options
author | Jarek Kobus <[email protected]> | 2023-10-16 21:33:58 +0200 |
---|---|---|
committer | Jarek Kobus <[email protected]> | 2024-01-05 10:17:35 +0000 |
commit | b49c40181a61e7ad08baa9265d4461ecefdeab01 (patch) | |
tree | 5d81eb0f21918ef0697e52abb7cc490070e123d4 /src/libs/utils/guiutils.cpp | |
parent | c48c3110dabc4dd504ad7ce3715cea726c70d79b (diff) |
GuiUtils: Apply wheel blocker to more widgets
Attach it to configuration and aspect widgets.
Change-Id: Ifd649f6dbf8bbb1ce1cf7251ac46b7cfac9798e3
Reviewed-by: Eike Ziller <[email protected]>
Diffstat (limited to 'src/libs/utils/guiutils.cpp')
-rw-r--r-- | src/libs/utils/guiutils.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libs/utils/guiutils.cpp b/src/libs/utils/guiutils.cpp index 6d3a790c5d1..35830f1ca41 100644 --- a/src/libs/utils/guiutils.cpp +++ b/src/libs/utils/guiutils.cpp @@ -31,6 +31,8 @@ public: void QTCREATOR_UTILS_EXPORT setWheelScrollingWithoutFocusBlocked(QWidget *widget) { static Internal::WheelEventFilter instance; + // Installing duplicated event filter for the same objects just brings the event filter + // to the front and is otherwise no-op (the second event filter isn't installed). widget->installEventFilter(&instance); if (widget->focusPolicy() == Qt::WheelFocus) widget->setFocusPolicy(Qt::StrongFocus); |