1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-26 04:32:35 +01:00

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.
This commit is contained in:
Megamouse 2021-02-02 13:20:53 +01:00
parent 2c32a721fc
commit 6ed9251f44

View File

@ -1882,32 +1882,6 @@ bool game_list_frame::eventFilter(QObject *object, QEvent *event)
}
}
}
else if (event->type() == QEvent::ToolTip)
{
QHelpEvent *help_event = static_cast<QHelpEvent *>(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);
}