diff options
author | LC <mathew1800@gmail.com> | 2020-09-30 11:54:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-30 11:54:18 +0200 |
commit | 1ba0b077fc226382fcf581a5b02f655e365e5f27 (patch) | |
tree | 23bd115e3d8efbdd0932c5492a62d6ca8949835c | |
parent | Merge pull request #4732 from ReinUsesLisp/wall-clock-destr (diff) | |
parent | qt/game_list: Give GameListSearchField::KeyReleaseEater a parent (diff) | |
download | yuzu-1ba0b077fc226382fcf581a5b02f655e365e5f27.tar yuzu-1ba0b077fc226382fcf581a5b02f655e365e5f27.tar.gz yuzu-1ba0b077fc226382fcf581a5b02f655e365e5f27.tar.bz2 yuzu-1ba0b077fc226382fcf581a5b02f655e365e5f27.tar.lz yuzu-1ba0b077fc226382fcf581a5b02f655e365e5f27.tar.xz yuzu-1ba0b077fc226382fcf581a5b02f655e365e5f27.tar.zst yuzu-1ba0b077fc226382fcf581a5b02f655e365e5f27.zip |
-rw-r--r-- | src/yuzu/game_list.cpp | 5 | ||||
-rw-r--r-- | src/yuzu/game_list_p.h | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/yuzu/game_list.cpp b/src/yuzu/game_list.cpp index a9738e298..70d865112 100644 --- a/src/yuzu/game_list.cpp +++ b/src/yuzu/game_list.cpp @@ -25,7 +25,8 @@ #include "yuzu/main.h" #include "yuzu/uisettings.h" -GameListSearchField::KeyReleaseEater::KeyReleaseEater(GameList* gamelist) : gamelist{gamelist} {} +GameListSearchField::KeyReleaseEater::KeyReleaseEater(GameList* gamelist, QObject* parent) + : QObject(parent), gamelist{gamelist} {} // EventFilter in order to process systemkeys while editing the searchfield bool GameListSearchField::KeyReleaseEater::eventFilter(QObject* obj, QEvent* event) { @@ -116,7 +117,7 @@ void GameListSearchField::setFocus() { } GameListSearchField::GameListSearchField(GameList* parent) : QWidget{parent} { - auto* const key_release_eater = new KeyReleaseEater(parent); + auto* const key_release_eater = new KeyReleaseEater(parent, this); layout_filter = new QHBoxLayout; layout_filter->setMargin(8); label_filter = new QLabel; diff --git a/src/yuzu/game_list_p.h b/src/yuzu/game_list_p.h index 92779a9c7..248855aff 100644 --- a/src/yuzu/game_list_p.h +++ b/src/yuzu/game_list_p.h @@ -330,7 +330,7 @@ public: private: class KeyReleaseEater : public QObject { public: - explicit KeyReleaseEater(GameList* gamelist); + explicit KeyReleaseEater(GameList* gamelist, QObject* parent = nullptr); private: GameList* gamelist = nullptr; |