mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-01-09 02:01:02 +01:00
21 lines
361 B
C++
21 lines
361 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())
|
|
{
|
|
clearSelection();
|
|
}
|
|
QTableWidget::mousePressEvent(event);
|
|
}
|
|
};
|