mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-01-06 16:49:59 +01:00
22 lines
418 B
C++
22 lines
418 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) override
|
|
{
|
|
if (!indexAt(event->pos()).isValid() || itemAt(event->pos())->data(Qt::UserRole) < 0)
|
|
{
|
|
clearSelection();
|
|
}
|
|
QTableWidget::mousePressEvent(event);
|
|
}
|
|
};
|