Skip to content

Commit

Permalink
Rename param of DoubleClickEater::eventFilter to have better name.
Browse files Browse the repository at this point in the history
  • Loading branch information
przemek83 committed Dec 17, 2024
1 parent bf350d5 commit 968ed00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/DoubleClickEater.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

DoubleClickEater::DoubleClickEater(QObject* parent) : QObject(parent) {}

bool DoubleClickEater::eventFilter(QObject* obj, QEvent* event)
bool DoubleClickEater::eventFilter(QObject* watched, QEvent* event)
{
if (event->type() == QEvent::MouseButtonDblClick)
return true;
return QObject::eventFilter(obj, event);
return QObject::eventFilter(watched, event);
}
2 changes: 1 addition & 1 deletion src/DoubleClickEater.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ class DoubleClickEater : public QObject
explicit DoubleClickEater(QObject* parent = nullptr);

protected:
bool eventFilter(QObject* obj, QEvent* event) override;
bool eventFilter(QObject* watched, QEvent* event) override;
};

0 comments on commit 968ed00

Please sign in to comment.