mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-02-17 21:24:18 +01:00
* 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
22 lines
409 B
C++
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);
|
|
}
|
|
};
|