mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-28 01:49:33 -06:00
Merge pull request #13509 from Dentomologist/gamelist_fix_right_doubleclick_starting_games
GameList: Ignore non-left double-clicks
This commit is contained in:
@ -93,6 +93,25 @@ protected:
|
||||
else
|
||||
return QTableView::moveCursor(cursorAction, modifiers);
|
||||
}
|
||||
|
||||
virtual void mouseDoubleClickEvent(QMouseEvent* const event) override
|
||||
{
|
||||
if (event->button() == Qt::LeftButton)
|
||||
QTableView::mouseDoubleClickEvent(event);
|
||||
}
|
||||
};
|
||||
|
||||
class GameListListView : public QListView
|
||||
{
|
||||
public:
|
||||
explicit GameListListView(QWidget* parent = nullptr) : QListView(parent) {}
|
||||
|
||||
protected:
|
||||
virtual void mouseDoubleClickEvent(QMouseEvent* const event) override
|
||||
{
|
||||
if (event->button() == Qt::LeftButton)
|
||||
QListView::mouseDoubleClickEvent(event);
|
||||
}
|
||||
};
|
||||
} // namespace
|
||||
|
||||
@ -319,7 +338,7 @@ void GameList::resizeEvent(QResizeEvent* event)
|
||||
|
||||
void GameList::MakeGridView()
|
||||
{
|
||||
m_grid = new QListView(this);
|
||||
m_grid = new GameListListView(this);
|
||||
m_grid->setModel(m_grid_proxy);
|
||||
m_grid->setSelectionMode(QAbstractItemView::ExtendedSelection);
|
||||
|
||||
|
Reference in New Issue
Block a user