From 6ed9251f440485d7d5ed45a8a155782a37fe56ca Mon Sep 17 00:00:00 2001 From: Megamouse Date: Tue, 2 Feb 2021 13:20:53 +0100 Subject: [PATCH] Remove tooltip event filter from gamelist Fixes a weird issue where tooltips for the wrong game would popup. I don't know why the event filter was needed. Maybe the tooltips didn't work otherwise back then or it was just some copy paste from google. --- rpcs3/rpcs3qt/game_list_frame.cpp | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/rpcs3/rpcs3qt/game_list_frame.cpp b/rpcs3/rpcs3qt/game_list_frame.cpp index 5e7ae67015..af85869258 100644 --- a/rpcs3/rpcs3qt/game_list_frame.cpp +++ b/rpcs3/rpcs3qt/game_list_frame.cpp @@ -1882,32 +1882,6 @@ bool game_list_frame::eventFilter(QObject *object, QEvent *event) } } } - else if (event->type() == QEvent::ToolTip) - { - QHelpEvent *help_event = static_cast(event); - QTableWidgetItem* item; - - if (m_is_list_layout) - { - item = m_game_list->itemAt(help_event->globalPos()); - } - else - { - item = m_game_grid->itemAt(help_event->globalPos()); - } - - if (item && !item->toolTip().isEmpty() && (!m_is_list_layout || item->column() == gui::column_name || item->column() == gui::column_serial)) - { - QToolTip::showText(help_event->globalPos(), item->toolTip()); - } - else - { - QToolTip::hideText(); - event->ignore(); - } - - return true; - } return QDockWidget::eventFilter(object, event); }