mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-20 22:05:12 +00:00
* emulator tab: minor layout adjustment * tool bar: adjust size dynamically for hidpi * gamelist tool bar: adjust size dynamically for hidpi * gamelist search bar: adjust style * move game_list.h into rpcs3qt * hide game data by default
20 lines
361 B
C++
20 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);
|
|
}
|
|
};
|