rpcsx/rpcs3/rpcs3qt/game_list.h
Megamouse 0ca1f82059 [Qt] fix experimental build warning layout and smoothen gamelist scrolling (#3532)
* Qt: fix layout of "experimental build warning" for dpi scaling

and remove compiler warning in welcome_dialog.ui

* Qt: smoothen gamelist/-grid scrolling by setting singlestep value

and fix missing scroll and deselect on gamegrid

* Qt: show all bootable categories in gamegrid
2017-10-05 05:22:02 +03:00

22 lines
409 B
C++

#pragma once
#include <QTableWidget>
#include <QMouseEvent>
/*
class used in order to get deselection
if you know a simpler way, tell @Megamouse
*/
class game_list : public QTableWidget
{
private:
void mousePressEvent(QMouseEvent *event)
{
if (!indexAt(event->pos()).isValid() || itemAt(event->pos())->data(Qt::UserRole) < 0)
{
clearSelection();
}
QTableWidget::mousePressEvent(event);
}
};