mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-12 09:48:37 +12:00
GUI: add custom config indicator (#3108)
* game_list: add custom config indicator * icon resize: get rid of duplicate call (great performance boost) * icon resize: only save on slider release or clicks (performance) refactoring shenanigans * game_list: skip filtered out games in Refresh (performance) * settings_dialog: remove unnecessary show() that caused glitches * gs_frame: add disableMouse setting * fix travis warnings
This commit is contained in:
parent
9a1a7dd531
commit
4dbc546e7b
17 changed files with 154 additions and 83 deletions
|
@ -10,11 +10,9 @@
|
|||
|
||||
inline QString qstr(const std::string& _in) { return QString::fromUtf8(_in.data(), _in.size()); }
|
||||
|
||||
gs_frame::gs_frame(const QString& title, int w, int h, QIcon appIcon)
|
||||
: QWindow()
|
||||
gs_frame::gs_frame(const QString& title, int w, int h, QIcon appIcon, bool disableMouse)
|
||||
: QWindow(), m_windowTitle(title), m_disable_mouse(disableMouse)
|
||||
{
|
||||
m_windowTitle = title;
|
||||
|
||||
if (!Emu.GetTitle().empty())
|
||||
{
|
||||
m_windowTitle += qstr(" | " + Emu.GetTitle());
|
||||
|
@ -201,6 +199,8 @@ void gs_frame::flip(draw_context_t, bool /*skip_frame*/)
|
|||
|
||||
void gs_frame::mouseDoubleClickEvent(QMouseEvent* ev)
|
||||
{
|
||||
if (m_disable_mouse) return;
|
||||
|
||||
if (ev->button() == Qt::LeftButton)
|
||||
{
|
||||
OnFullScreen();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue