Move DockWidgetBase::eventFilter() into the private class

Fixes issue #151 where the user is overriding eventFilter too
and getting into some edge cases.

Could be worked around in user code, but it's always good to have
less protected and private API in public classes.
This commit is contained in:
Sergio Martins
2021-01-29 20:20:01 +00:00
parent 799f2a81a7
commit 6ccd98ca01
3 changed files with 16 additions and 15 deletions

View File

@@ -463,9 +463,6 @@ protected:
void onShown(bool spontaneous);
void onHidden(bool spontaneous);
///@reimp
bool eventFilter(QObject *, QEvent *) override;
#ifndef PYTHON_BINDINGS //Pyside bug: https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-1327
void onCloseEvent(QCloseEvent *e) override;
bool onResize(QSize newSize) override;