Qt: Don't allow double click to resize window when the user could be using touch controls.

This commit is contained in:
Sacha 2013-11-05 11:53:49 +10:00
parent 5263d53282
commit 296372262c

View File

@ -4,6 +4,7 @@
#include "base/display.h" #include "base/display.h"
#include "base/timeutil.h" #include "base/timeutil.h"
#include "Core/Config.h"
QtEmuGL::QtEmuGL(QWidget *parent) : QtEmuGL::QtEmuGL(QWidget *parent) :
QGLWidget(parent) QGLWidget(parent)
@ -41,7 +42,8 @@ void QtEmuGL::paintGL()
void QtEmuGL::mouseDoubleClickEvent(QMouseEvent *) void QtEmuGL::mouseDoubleClickEvent(QMouseEvent *)
{ {
emit doubleClick(); if (!g_Config.bShowTouchControls || globalUIState != UISTATE_INGAME)
emit doubleClick();
} }
void QtEmuGL::mousePressEvent(QMouseEvent *e) void QtEmuGL::mousePressEvent(QMouseEvent *e)