Make DockWidgetBase::eventFilter() protected

The users might want to override it

Fixes #148 and restores source compat with v1.1
This commit is contained in:
Sergio Martins
2021-01-26 13:00:18 +00:00
parent de068dc6ff
commit 4bede063ae
2 changed files with 5 additions and 3 deletions

View File

@@ -498,6 +498,9 @@ 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;
@@ -567,9 +570,6 @@ private:
///@brief Updates the floatAction state
void updateFloatAction();
///@reimp
bool eventFilter(QObject *, QEvent *) override;
class Private;
Private *const d;
};